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
185 B
Rust
Raw Normal View History

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