rust/tests/ui/lifetimes/elided-lint-in-mod.rs

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

12 lines
201 B
Rust
Raw Permalink Normal View History

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() {}