11 lines
149 B
Rust
11 lines
149 B
Rust
// compile-pass
|
|
#![allow(dead_code)]
|
|
trait Foo {
|
|
fn foo(&self);
|
|
}
|
|
|
|
fn foo<'a>(s: &'a mut ()) where &'a mut (): Foo {
|
|
s.foo();
|
|
}
|
|
fn main() {}
|