diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-37725.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-37725.rs b/src/test/ui/issues/issue-37725.rs new file mode 100644 index 000000000..1c6df0da6 --- /dev/null +++ b/src/test/ui/issues/issue-37725.rs @@ -0,0 +1,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() {} |