diff --git a/tests/compile-fail/static_is_sized.rs b/tests/compile-fail/static_is_sized.rs index 3719f97..3681ad7 100644 --- a/tests/compile-fail/static_is_sized.rs +++ b/tests/compile-fail/static_is_sized.rs @@ -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() { }