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