blob: 1c497876a90da66f2d0dfaaf2c1658e9ae99c993 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
 | //@ check-pass
use std::fmt;
// CoerceUnsized is not implemented for tuples. You can still create
// an unsized tuple by transmuting a trait object.
fn any<T>() -> T { unreachable!() }
fn main() {
    let t: &(u8, dyn fmt::Debug) = any();
    println!("{:?}", &t.1);
}
 |