about summary refs log tree commit diff
path: root/tests/ui/imports/issue-26886.rs
blob: 91be86ae7749c88ff282b9e2b87616ffbe4493a5 (plain)
1
2
3
4
5
6
7
8
9
10
//@ dont-require-annotations: NOTE

use std::sync::{self, Arc};
use std::sync::Arc; //~ ERROR the name `Arc` is defined multiple times
                    //~| NOTE `Arc` must be defined only once in the type namespace of this module
use std::sync; //~ ERROR the name `sync` is defined multiple times
               //~| NOTE `sync` must be defined only once in the type namespace of this module

fn main() {
}