diff options
Diffstat (limited to 'src/test/ui/unresolved/unresolved-candidates.rs')
-rw-r--r-- | src/test/ui/unresolved/unresolved-candidates.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/unresolved/unresolved-candidates.rs b/src/test/ui/unresolved/unresolved-candidates.rs new file mode 100644 index 000000000..38b227f60 --- /dev/null +++ b/src/test/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() {} |