abf4d8babf
If there is potential ambiguity after stabilizing those candidates, a warning will be emitted.
28 lines
930 B
Rust
28 lines
930 B
Rust
// Copyright 2018 The Rust Project Developers. See the COPYRIGHT
|
|
// file at the top-level directory of this distribution and at
|
|
// http://rust-lang.org/COPYRIGHT.
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
// option. This file may not be copied, modified, or distributed
|
|
// except according to those terms.
|
|
|
|
// 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
|
|
}
|