mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 06:22:00 +00:00
13 lines
184 B
Rust
13 lines
184 B
Rust
// build-pass
|
|
// compiler-opts: -Zmir-opt-level=2
|
|
|
|
#![allow(dead_code)]
|
|
trait Foo {
|
|
fn foo(&self);
|
|
}
|
|
|
|
fn foo<'a>(s: &'a mut ()) where &'a mut (): Foo {
|
|
s.foo();
|
|
}
|
|
fn main() {}
|