]> git.lizzy.rs Git - rust.git/blob - src/test/ui/layout/issue-84108.stderr
Auto merge of #103600 - compiler-errors:early-binder-nits, r=spastorino
[rust.git] / src / test / ui / layout / issue-84108.stderr
1 error[E0412]: cannot find type `OsStr` in this scope
2   --> $DIR/issue-84108.rs:6:24
3    |
4 LL | static FOO: (dyn AsRef<OsStr>, u8) = ("hello", 42);
5    |                        ^^^^^ not found in this scope
6    |
7 help: consider importing this struct
8    |
9 LL | use std::ffi::OsStr;
10    |
11
12 error[E0412]: cannot find type `Path` in this scope
13   --> $DIR/issue-84108.rs:9:14
14    |
15 LL | const BAR: (&Path, [u8], usize) = ("hello", [], 42);
16    |              ^^^^ not found in this scope
17    |
18 help: consider importing this struct
19    |
20 LL | use std::path::Path;
21    |
22
23 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
24   --> $DIR/issue-84108.rs:9:12
25    |
26 LL | 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
32 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
33   --> $DIR/issue-84108.rs:13:13
34    |
35 LL | 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
41 error: aborting due to 4 previous errors
42
43 Some errors have detailed explanations: E0277, E0412.
44 For more information about an error, try `rustc --explain E0277`.