blob: 31a9dd49e5c65be00f1ae83d9f691b7d25e90e74 [file] [log] [blame] [edit]
//! Regression test for <https://github.com/rust-lang/rust/issues/144215>
#[rustfmt::skip]
struct S<T:>(&'static T);
//~^ ERROR the parameter type `T` may not live long enough
//~| HELP consider adding an explicit lifetime bound
//~| SUGGESTION 'static
fn main() {}