rust/tests/ui/suggestions/core-std-import-order-issue-83564.stderr
2023-04-12 22:50:10 +00:00

19 lines
508 B
Plaintext

error[E0433]: failed to resolve: use of undeclared type `NonZeroU32`
--> $DIR/core-std-import-order-issue-83564.rs:8:14
|
LL | let _x = NonZeroU32::new(5).unwrap();
| ^^^^^^^^^^ use of undeclared type `NonZeroU32`
|
help: consider importing one of these items
|
LL + use core::num::NonZeroU32;
LL | fn main() {
|
LL + use std::num::NonZeroU32;
LL | fn main() {
|
error: aborting due to previous error
For more information about this error, try `rustc --explain E0433`.