]> git.lizzy.rs Git - rust.git/blob - tests/ui/inference/inference_unstable_forced.rs
Rollup merge of #106849 - WaffleLapkin:unvec, r=Nilstrieb
[rust.git] / tests / ui / inference / inference_unstable_forced.rs
1 // If the unstable API is the only possible solution,
2 // still emit E0658 "use of unstable library feature".
3
4 // aux-build:inference_unstable_iterator.rs
5
6 extern crate inference_unstable_iterator;
7
8 use inference_unstable_iterator::IpuIterator;
9
10 fn main() {
11     assert_eq!('x'.ipu_flatten(), 0);   //~ ERROR E0658
12 }