mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
16 lines
228 B
Rust
16 lines
228 B
Rust
//@ run-pass
|
|
#![allow(dead_code)]
|
|
// Test that you can insert an explicit lifetime in explicit self.
|
|
|
|
//@ pretty-expanded FIXME #23616
|
|
|
|
struct Foo {
|
|
f: usize
|
|
}
|
|
|
|
impl Foo {
|
|
pub fn foo<'a>(&'a self) {}
|
|
}
|
|
|
|
pub fn main() {}
|