rust/src/test/ui/issues/issue-37725.rs
2019-07-03 06:30:28 +09:00

11 lines
184 B
Rust

// build-pass (FIXME(62277): could be check-pass?)
#![allow(dead_code)]
trait Foo {
fn foo(&self);
}
fn foo<'a>(s: &'a mut ()) where &'a mut (): Foo {
s.foo();
}
fn main() {}