rust/tests/ui/issues/issue-37725.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
184 B
Rust
Raw Normal View History

2019-11-05 18:00:00 -06:00
// build-pass
2022-05-09 11:43:16 -05:00
// 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() {}