about summary refs log tree commit diff
path: root/tests/ui/suggestions/crate-or-module-typo.rs
blob: 393fc7a1f72e0bbbe4e7222d0581dad230942575 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//@ edition:2018

use st::cell::Cell; //~ ERROR failed to resolve: use of unresolved module or unlinked crate `st`

mod bar {
    pub fn bar() { bar::baz(); } //~ ERROR failed to resolve: function `bar` is not a crate or module

    fn baz() {}
}

use bas::bar; //~ ERROR unresolved import `bas`

struct Foo {
    bar: st::cell::Cell<bool> //~ ERROR failed to resolve: use of unresolved module or unlinked crate `st`
}

fn main() {}