]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/core-std-import-order-issue-83564.rs
Auto merge of #107133 - pnkfelix:revert-pr-84022-for-issue-106337, r=Mark-Simulacrum
[rust.git] / tests / ui / suggestions / core-std-import-order-issue-83564.rs
1 // edition:2018
2
3 // This is a regression test for #83564.
4 // For some reason, Rust 2018 or higher is required to reproduce the bug.
5
6 fn main() {
7     //~^ HELP consider importing one of these items
8     let _x = NonZeroU32::new(5).unwrap();
9     //~^ ERROR failed to resolve: use of undeclared type `NonZeroU32`
10 }