aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/use_1.rs
blob: 94b96321a6353476aac869768e4ca45e875430bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
mod frob {}

use foo::bar::baz; // { dg-error "cannot find simple path segment .foo." }
use frob::ulator; // { dg-error "cannot find simple path segment .ulator." }

mod sain {
    mod doux {}

    mod dron {}
}

use not_sain::*; // { dg-error "cannot find simple path segment .not_sain." }

use sain::*;
use sain::{doux, dron};
use sain::{doux, dron, graal}; // { dg-error "cannot find simple path segment .graal." }