mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +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() {}
|