1error[E0412]: cannot find type `OsStr` in this scope 2 --> $DIR/issue-84108.rs:6:24 3 | 4LL | static FOO: (dyn AsRef<OsStr>, u8) = ("hello", 42); 5 | ^^^^^ not found in this scope 6 | 7help: consider importing this struct 8 | 9LL | use std::ffi::OsStr; 10 | 11 12error[E0412]: cannot find type `Path` in this scope 13 --> $DIR/issue-84108.rs:9:14 14 | 15LL | const BAR: (&Path, [u8], usize) = ("hello", [], 42); 16 | ^^^^ not found in this scope 17 | 18help: consider importing this struct 19 | 20LL | use std::path::Path; 21 | 22 23error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 24 --> $DIR/issue-84108.rs:9:12 25 | 26LL | const BAR: (&Path, [u8], usize) = ("hello", [], 42); 27 | ^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 28 | 29 = help: the trait `Sized` is not implemented for `[u8]` 30 = note: only the last element of a tuple may have a dynamically sized type 31 32error[E0277]: the size for values of type `[u8]` cannot be known at compilation time 33 --> $DIR/issue-84108.rs:13:13 34 | 35LL | static BAZ: ([u8], usize) = ([], 0); 36 | ^^^^^^^^^^^^^ doesn't have a size known at compile-time 37 | 38 = help: the trait `Sized` is not implemented for `[u8]` 39 = note: only the last element of a tuple may have a dynamically sized type 40 41error: aborting due to 4 previous errors 42 43Some errors have detailed explanations: E0277, E0412. 44For more information about an error, try `rustc --explain E0277`. 45