]> git.proxmox.com Git - rustc.git/blame - src/test/ui/resolve/resolve-primitive-fallback.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / resolve / resolve-primitive-fallback.stderr
CommitLineData
b7449926 1error[E0423]: expected value, found builtin type `u16`
0731742a 2 --> $DIR/resolve-primitive-fallback.rs:3:23
b7449926
XL
3 |
4LL | std::mem::size_of(u16);
5 | ^^^ not a value
6
7error[E0412]: cannot find type `u8` in the crate root
0731742a 8 --> $DIR/resolve-primitive-fallback.rs:8:14
b7449926
XL
9 |
10LL | let _: ::u8;
11 | ^^ not found in the crate root
74b04a01 12 |
f9f354fc 13help: consider importing this builtin type
74b04a01
XL
14 |
15LL | use std::primitive::u8;
16 |
04454e1e
FG
17help: if you import `u8`, refer to it directly
18 |
19LL - let _: ::u8;
20LL + let _: u8;
21 |
b7449926 22
74b04a01 23error[E0061]: this function takes 0 arguments but 1 argument was supplied
0731742a 24 --> $DIR/resolve-primitive-fallback.rs:3:5
b7449926
XL
25 |
26LL | std::mem::size_of(u16);
74b04a01
XL
27 | ^^^^^^^^^^^^^^^^^ --- supplied 1 argument
28 | |
29 | expected 0 arguments
5869c6ff
XL
30 |
31note: function defined here
32 --> $SRC_DIR/core/src/mem/mod.rs:LL:COL
33 |
34LL | pub const fn size_of<T>() -> usize {
35 | ^^^^^^^
b7449926
XL
36
37error: aborting due to 3 previous errors
38
48663c56 39Some errors have detailed explanations: E0061, E0412, E0423.
b7449926 40For more information about an error, try `rustc --explain E0061`.