summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/force-warn/allowed-by-default-lint.rs
blob: b24ab822d93037b4f61a4bc6a32f0fff5445cd24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// --force-warn $LINT causes $LINT (which is allow-by-default) to warn
// compile-flags: --force-warn elided_lifetimes_in_paths
// check-pass

struct Foo<'a> {
    x: &'a u32,
}

fn foo(x: &Foo) {}
//~^ WARN hidden lifetime parameters in types are deprecated

fn main() {}