Files
rust/tests/ui/regions/regions-expl-self.rs

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

15 lines
195 B
Rust
Raw Normal View History

//@ run-pass
#![allow(dead_code)]
// Test that you can insert an explicit lifetime in explicit self.
struct Foo {
f: usize
}
impl Foo {
pub fn foo<'a>(&'a self) {}
}
pub fn main() {}