mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
13 lines
185 B
Rust
13 lines
185 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() {}
|