mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
12 lines
201 B
Rust
12 lines
201 B
Rust
struct Foo<'a>(&'a ());
|
|
|
|
fn test(_: Foo) {}
|
|
|
|
#[deny(elided_lifetimes_in_paths)]
|
|
mod w {
|
|
fn test2(_: super::Foo) {}
|
|
//~^ ERROR hidden lifetime parameters in types are deprecated
|
|
}
|
|
|
|
fn main() {}
|