mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +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() {}
|