rust/tests/ui/issues/issue-37725.rs
2023-01-11 09:32:08 +00:00

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