1 // See issue #84108 -- this is a test to ensure we do not ICE
2 // on this invalid code.
6 static FOO: (dyn AsRef<OsStr>, u8) = ("hello", 42);
7 //~^ ERROR cannot find type `OsStr` in this scope
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
13 static BAZ: ([u8], usize) = ([], 0);
14 //~^ ERROR the size for values of type `[u8]` cannot be known at compilation time