rust/tests/ui/lint/force-warn/allowed-by-default-lint.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
273 B
Rust
Raw Normal View History

2021-08-18 04:05:59 -05:00
// --force-warn $LINT causes $LINT (which is allow-by-default) to warn
// 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() {}