1 // Regression test for #81522.
2 // Ensures that `#[allow(unstable_name_collisions)]` appended to things other than function
3 // suppresses the corresponding diagnostics emitted from inside them.
4 // But note that this attribute doesn't work for macro invocations if it is appended directly.
6 // aux-build:inference_unstable_iterator.rs
7 // aux-build:inference_unstable_itertools.rs
10 extern crate inference_unstable_iterator;
11 extern crate inference_unstable_itertools;
13 #[allow(unused_imports)]
14 use inference_unstable_iterator::IpuIterator;
15 use inference_unstable_itertools::IpuItertools;
18 // expression statement
19 #[allow(unstable_name_collisions)]
23 #[allow(unstable_name_collisions)]
24 let _ = 'x'.ipu_flatten();
27 #[allow(unstable_name_collisions)]