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
|
2019-12-26 17:55:13 +00:00
|
|
|
|
|
2022-05-03 02:07:47 +00:00
|
|
|
help: consider importing this builtin type
|
2019-12-26 17:55:13 +00:00
|
|
|
|
|
2023-03-18 02:18:39 +00:00
|
|
|
LL + use std::primitive::u8;
|
2019-12-26 17:55:13 +00:00
|
|
|
|
|
2022-05-03 02:07:47 +00:00
|
|
|
help: if you import `u8`, refer to it directly
|
2022-04-23 23:41:36 +00:00
|
|
|
|
|
|
|
|
LL - let _: ::u8;
|
|
|
|
LL + let _: u8;
|
2022-06-08 17:34:57 +00:00
|
|
|
|
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2020-02-06 05:08:07 +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
|
2021-01-02 18:45:11 +00:00
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-04-17 17:26:38 +00:00
|
|
|
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`.
|