]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-33241.rs
Merge commit '6ed6f1e6a1a8f414ba7e6d9b8222e7e5a1686e42' into clippyup
[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 }