about summary refs log tree commit diff
path: root/tests/ui/lifetimes/raw/simple.rs
blob: 6f70a2722030052ae187c9474df81fa47d50d4db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//@ check-pass
//@ edition: 2021

fn foo<'r#struct>() {}

fn hr<T>() where for<'r#struct> T: Into<&'r#struct ()> {}

trait Foo<'r#struct> {}

trait Bar<'r#struct> {
    fn method(&'r#struct self) {}
    fn method2(self: &'r#struct Self) {}
}

fn labeled() {
    'r#struct: loop {
        break 'r#struct;
    }
}

fn main() {}