2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2015-03-22 15:13:15 -05:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2015-03-30 13:00:05 -05:00
|
|
|
trait Str { fn foo(&self) {} }
|
|
|
|
impl Str for str {}
|
|
|
|
impl<'a, S: ?Sized> Str for &'a S where S: Str {}
|
|
|
|
|
2014-12-07 09:22:06 -06:00
|
|
|
fn main() {
|
2019-05-28 13:47:21 -05:00
|
|
|
let _: &dyn Str = &"x";
|
2014-12-07 09:22:06 -06:00
|
|
|
}
|