rust/tests/ui/resolve/resolve-primitive-fallback.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1.1 KiB
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0423]: expected value, found builtin type `u16`
2018-12-25 09:56:47 -06:00
--> $DIR/resolve-primitive-fallback.rs:3:23
2018-08-08 07:28:26 -05:00
|
LL | std::mem::size_of(u16);
| ^^^ not a value
error[E0412]: cannot find type `u8` in the crate root
2018-12-25 09:56:47 -06:00
--> $DIR/resolve-primitive-fallback.rs:8:14
2018-08-08 07:28:26 -05:00
|
LL | let _: ::u8;
| ^^ not found in the crate root
|
2022-05-02 21:07:47 -05:00
help: consider importing this builtin type
|
LL | use std::primitive::u8;
|
2022-05-02 21:07:47 -05:00
help: if you import `u8`, refer to it directly
|
LL - let _: ::u8;
LL + let _: u8;
2022-06-08 12:34:57 -05:00
|
2018-08-08 07:28:26 -05:00
error[E0061]: this function takes 0 arguments but 1 argument was supplied
2018-12-25 09:56:47 -06:00
--> $DIR/resolve-primitive-fallback.rs:3:5
2018-08-08 07:28:26 -05:00
|
LL | std::mem::size_of(u16);
2023-02-01 11:44:48 -06:00
| ^^^^^^^^^^^^^^^^^ ---
| |
| unexpected argument
| help: remove the extra argument
|
note: function defined here
--> $SRC_DIR/core/src/mem/mod.rs:LL:COL
2018-08-08 07:28:26 -05:00
error: aborting due to 3 previous errors
Some errors have detailed explanations: E0061, E0412, E0423.
2018-08-08 07:28:26 -05:00
For more information about an error, try `rustc --explain E0061`.