Skip to content

Commit

Permalink
Fix error pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimundi committed Nov 13, 2017
1 parent e1f9b53 commit 8fff063
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/compile-fail/static_is_sized.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// error-pattern:the trait bound `str: std::marker::Sized` is not satisfied
#[macro_use]
extern crate lazy_static;

lazy_static! {
pub static ref FOO: str = panic!();
}
//^ ERROR `str` does not have a constant size known at compile-time


fn main() {
}

0 comments on commit 8fff063

Please sign in to comment.