Skip to content

Commit 8fff063

Browse files
committed
Fix error pattern
1 parent e1f9b53 commit 8fff063

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/compile-fail/static_is_sized.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
// error-pattern:the trait bound `str: std::marker::Sized` is not satisfied
12
#[macro_use]
23
extern crate lazy_static;
34

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

910
fn main() {
1011
}

0 commit comments

Comments
 (0)