]> git.proxmox.com Git - rustc.git/blob - src/test/compile-fail/issue-24081.rs
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / test / compile-fail / issue-24081.rs
1 // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 use std::ops::Add; //~ NOTE previous import
12 use std::ops::Sub; //~ NOTE previous import
13 use std::ops::Mul; //~ NOTE previous import
14 use std::ops::Div; //~ NOTE previous import
15 use std::ops::Rem; //~ NOTE previous import
16
17 type Add = bool; //~ ERROR a trait named `Add` has already been imported in this module
18 struct Sub { x: f32 } //~ ERROR a trait named `Sub` has already been imported in this module
19 enum Mul { A, B } //~ ERROR a trait named `Mul` has already been imported in this module
20 mod Div { } //~ ERROR a trait named `Div` has already been imported in this module
21 trait Rem { } //~ ERROR a trait named `Rem` has already been imported in this module
22
23 fn main() {}