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

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

17 lines
474 B
Plaintext
Raw Normal View History

2021-09-26 14:21:44 -05:00
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`
2021-09-26 14:21:44 -05:00
|
help: consider importing one of these items
|
LL | use core::num::NonZeroU32;
|
LL | use std::num::NonZeroU32;
|
2021-09-26 14:21:44 -05:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0433`.