]> git.lizzy.rs Git - rust.git/blob - src/test/ui/layout/issue-84108.rs
Auto merge of #103600 - compiler-errors:early-binder-nits, r=spastorino
[rust.git] / src / test / ui / layout / issue-84108.rs
1 // See issue #84108 -- this is a test to ensure we do not ICE
2 // on this invalid code.
3
4 #![crate_type = "lib"]
5
6 static FOO: (dyn AsRef<OsStr>, u8) = ("hello", 42);
7 //~^ ERROR cannot find type `OsStr` in this scope
8
9 const BAR: (&Path, [u8], usize) = ("hello", [], 42);
10 //~^ ERROR cannot find type `Path` in this scope
11 //~| ERROR the size for values of type `[u8]` cannot be known at compilation time
12
13 static BAZ: ([u8], usize) = ([], 0);
14 //~^ ERROR the size for values of type `[u8]` cannot be known at compilation time