about summary refs log tree commit diff
path: root/tests/ui/imports/import-from-missing-star.rs
blob: cb21e16ba6773ba67df5c20cb661e0944a62cb3e (plain)
1
2
3
4
5
6
7
8
9
10
use spam::*; //~ ERROR unresolved import `spam` [E0432]

fn main() {
    // Expect these to pass because the compiler knows there's a failed `*` import that might have
    // caused it.
    ham();
    eggs();
    // Even this case, as we might have expected `spam::foo` to exist.
    foo::bar();
}