]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-17351.rs
Rollup merge of #106869 - notriddle:notriddle/item-decl-pre-rust, r=GuillaumeGomez
[rust.git] / tests / ui / issues / issue-17351.rs
1 // run-pass
2 // pretty-expanded FIXME #23616
3
4 trait Str { fn foo(&self) {} }
5 impl Str for str {}
6 impl<'a, S: ?Sized> Str for &'a S where S: Str {}
7
8 fn main() {
9     let _: &dyn Str = &"x";
10 }