2021-04-13 21:18:23 -05:00
|
|
|
// See issue #84108 -- this is a test to ensure we do not ICE
|
|
|
|
// on this invalid code.
|
|
|
|
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
|
|
|
|
static FOO: (dyn AsRef<OsStr>, u8) = ("hello", 42);
|
|
|
|
//~^ ERROR cannot find type `OsStr` in this scope
|
|
|
|
|
|
|
|
const BAR: (&Path, [u8], usize) = ("hello", [], 42);
|
|
|
|
//~^ ERROR cannot find type `Path` in this scope
|
2024-05-28 06:38:30 -05:00
|
|
|
//~| ERROR the size for values of type `[u8]` cannot be known at compilation time
|
|
|
|
//~| ERROR the size for values of type `[u8]` cannot be known at compilation time
|
|
|
|
//~| ERROR mismatched types
|
2021-04-13 21:18:23 -05:00
|
|
|
|
|
|
|
static BAZ: ([u8], usize) = ([], 0);
|
|
|
|
//~^ ERROR the size for values of type `[u8]` cannot be known at compilation time
|
2024-03-06 05:21:17 -06:00
|
|
|
//~| ERROR the size for values of type `[u8]` cannot be known at compilation time
|
2023-10-25 05:49:24 -05:00
|
|
|
//~| ERROR mismatched types
|