rust/src/test/ui/issues/issue-37725.rs
2018-12-25 21:08:33 -07:00

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() {}