rust/tests/ui/suggestions/core-std-import-order-issue...

17 lines
461 B
Plaintext

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