2019-11-06 00:00:00 +00:00
|
|
|
//@ build-pass
|
2022-05-09 18:43:16 +02:00
|
|
|
// compiler-opts: -Zmir-opt-level=2
|
|
|
|
|
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(dead_code)]
|
2017-08-04 14:44:12 +02:00
|
|
|
trait Foo {
|
|
|
|
|
fn foo(&self);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn foo<'a>(s: &'a mut ()) where &'a mut (): Foo {
|
|
|
|
|
s.foo();
|
2017-06-21 14:50:43 +03:00
|
|
|
}
|
|
|
|
|
fn main() {}
|