mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
22 lines
327 B
Rust
22 lines
327 B
Rust
//@ 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() {}
|