summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/dont-wrap-ambiguous-receivers.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/suggestions/dont-wrap-ambiguous-receivers.rs')
-rw-r--r--src/test/ui/suggestions/dont-wrap-ambiguous-receivers.rs21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/test/ui/suggestions/dont-wrap-ambiguous-receivers.rs b/src/test/ui/suggestions/dont-wrap-ambiguous-receivers.rs
deleted file mode 100644
index baa2128eb..000000000
--- a/src/test/ui/suggestions/dont-wrap-ambiguous-receivers.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-mod banana {
- //~^ HELP the following traits are implemented but not in scope
- pub struct Chaenomeles;
-
- pub trait Apple {
- fn pick(&self) {}
- }
- impl Apple for Chaenomeles {}
-
- pub trait Peach {
- fn pick(&self, a: &mut ()) {}
- }
- impl<Mango: Peach> Peach for Box<Mango> {}
- impl Peach for Chaenomeles {}
-}
-
-fn main() {
- banana::Chaenomeles.pick()
- //~^ ERROR no method named
- //~| HELP items from traits can only be used if the trait is in scope
-}