2018-10-31 13:08:01 +01:00
|
|
|
// compile-pass
|
|
|
|
// skip-codegen
|
2017-10-04 15:12:01 +02:00
|
|
|
|
|
|
|
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!() }
|
|
|
|
|
2018-10-31 13:08:01 +01:00
|
|
|
|
|
|
|
fn main() {
|
2017-10-04 15:12:01 +02:00
|
|
|
let t: &(u8, fmt::Debug) = any();
|
|
|
|
println!("{:?}", &t.1);
|
|
|
|
}
|