mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
19 lines
478 B
Plaintext
19 lines
478 B
Plaintext
error: hidden lifetime parameters in types are deprecated
|
|
--> $DIR/issue-91763.rs:8:20
|
|
|
|
|
LL | fn f() -> Ptr<Thing>;
|
|
| ^ expected lifetime parameter
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/issue-91763.rs:3:9
|
|
|
|
|
LL | #![deny(elided_lifetimes_in_paths)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
help: indicate the anonymous lifetime
|
|
|
|
|
LL | fn f() -> Ptr<Thing><'_>;
|
|
| ++++
|
|
|
|
error: aborting due to 1 previous error
|
|
|