]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-33241.rs
Rollup merge of #86479 - exphp-forks:float-debug-exponential, r=yaahc
[rust.git] / src / test / ui / issues / issue-33241.rs
1 // check-pass
2
3 use std::fmt;
4
5 // CoerceUnsized is not implemented for tuples. You can still create
6 // an unsized tuple by transmuting a trait object.
7 fn any<T>() -> T { unreachable!() }
8
9 fn main() {
10     let t: &(u8, dyn fmt::Debug) = any();
11     println!("{:?}", &t.1);
12 }