2021-08-18 04:05:59 -05:00
|
|
|
// --force-warn $LINT causes $LINT (which is allow-by-default) to warn
|
2021-07-24 03:08:33 -05:00
|
|
|
// compile-flags: --force-warn elided_lifetimes_in_paths
|
2021-05-27 12:19:39 -05:00
|
|
|
// check-pass
|
|
|
|
|
|
|
|
struct Foo<'a> {
|
|
|
|
x: &'a u32,
|
|
|
|
}
|
|
|
|
|
|
|
|
fn foo(x: &Foo) {}
|
|
|
|
//~^ WARN hidden lifetime parameters in types are deprecated
|
|
|
|
|
|
|
|
fn main() {}
|