diff options
Diffstat (limited to 'tests/ui/unresolved/unresolved-candidates.rs')
-rw-r--r-- | tests/ui/unresolved/unresolved-candidates.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/unresolved/unresolved-candidates.rs b/tests/ui/unresolved/unresolved-candidates.rs new file mode 100644 index 000000000..38b227f60 --- /dev/null +++ b/tests/ui/unresolved/unresolved-candidates.rs @@ -0,0 +1,13 @@ +mod a { + pub trait Trait {} +} + +mod b { + use Trait; //~ ERROR unresolved import `Trait` +} + +mod c { + impl Trait for () {} //~ ERROR cannot find trait `Trait` in this scope +} + +fn main() {} |