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

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

21 lines
240 B
Rust
Raw Normal View History

//@ run-pass
#![allow(dead_code)]
//@ pretty-expanded FIXME #23616
trait A {
fn dummy(&self) { }
}
struct B;
impl A for B {}
struct C<'a> {
2019-05-28 18:47:21 +00:00
foo: &'a mut (dyn A+'a),
}
2019-05-28 18:47:21 +00:00
fn foo(a: &mut dyn A) {
C{ foo: a };
}
pub fn main() {
}