diff options
Diffstat (limited to 'src/test/ui/suggestions/core-std-import-order-issue-83564.rs')
-rw-r--r-- | src/test/ui/suggestions/core-std-import-order-issue-83564.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/suggestions/core-std-import-order-issue-83564.rs b/src/test/ui/suggestions/core-std-import-order-issue-83564.rs new file mode 100644 index 000000000..b7fe5af7b --- /dev/null +++ b/src/test/ui/suggestions/core-std-import-order-issue-83564.rs @@ -0,0 +1,10 @@ +// edition:2018 + +// This is a regression test for #83564. +// For some reason, Rust 2018 or higher is required to reproduce the bug. + +fn main() { + //~^ HELP consider importing one of these items + let _x = NonZeroU32::new(5).unwrap(); + //~^ ERROR failed to resolve: use of undeclared type `NonZeroU32` +} |