mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
15 lines
396 B
Plaintext
15 lines
396 B
Plaintext
warning: hidden lifetime parameters in types are deprecated
|
|
--> $DIR/allowed-by-default-lint.rs:9:12
|
|
|
|
|
LL | fn foo(x: &Foo) {}
|
|
| ^^^ expected lifetime parameter
|
|
|
|
|
= note: requested on the command line with `--force-warn elided-lifetimes-in-paths`
|
|
help: indicate the anonymous lifetime
|
|
|
|
|
LL | fn foo(x: &Foo<'_>) {}
|
|
| ++++
|
|
|
|
warning: 1 warning emitted
|
|
|