about summary refs log tree commit diff
path: root/tests/ui/issues/issue-37725.rs
blob: 28b4527ebb9a96162d74cef7aa9475cc7928ae40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ 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() {}