about summary refs log tree commit diff
path: root/tests/ui/inference/inference_unstable_featured.rs
blob: dd8b8d6a470db7469fc56619bb8bd43b3688fe2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// There should be E0034 "multiple applicable items in scope" if we opt-in for
// the feature.

//@ aux-build:inference_unstable_iterator.rs
//@ aux-build:inference_unstable_itertools.rs

#![feature(ipu_flatten)]

extern crate inference_unstable_iterator;
extern crate inference_unstable_itertools;

use inference_unstable_iterator::IpuIterator;
use inference_unstable_itertools::IpuItertools;

fn main() {
    assert_eq!('x'.ipu_flatten(), 0);   //~ ERROR E0034
}