2024-02-22 14:59:52 +01:00
|
|
|
error[E0433]: failed to resolve: use of undeclared type `NonZero`
|
2024-06-12 23:51:31 +00:00
|
|
|
--> $DIR/core-std-import-order-issue-83564.rs:12:14
|
2021-09-26 12:21:44 -07:00
|
|
|
|
|
2024-02-22 14:59:52 +01:00
|
|
|
LL | let _x = NonZero::new(5u32).unwrap();
|
|
|
|
|
| ^^^^^^^ use of undeclared type `NonZero`
|
2021-09-26 12:21:44 -07:00
|
|
|
|
|
2024-06-12 23:51:31 +00:00
|
|
|
help: consider importing this struct
|
2021-09-26 12:21:44 -07:00
|
|
|
|
|
2024-02-22 14:59:52 +01:00
|
|
|
LL + use std::num::NonZero;
|
2021-10-01 18:09:31 +00:00
|
|
|
|
|
2021-09-26 12:21:44 -07:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2021-09-26 12:21:44 -07:00
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0433`.
|