]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-33241.rs
Pass cflags rather than cxxflags to LLVM as CMAKE_C_FLAGS
[rust.git] / src / test / ui / issues / issue-33241.rs
1 // compile-pass
2 // skip-codegen
3
4 use std::fmt;
5
6 // CoerceUnsized is not implemented for tuples. You can still create
7 // an unsized tuple by transmuting a trait object.
8 fn any<T>() -> T { unreachable!() }
9
10
11 fn main() {
12     let t: &(u8, dyn fmt::Debug) = any();
13     println!("{:?}", &t.1);
14 }