]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-20225.rs
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / issues / issue-20225.rs
index b15f2a631fd86533584aef6d1b737fde357cb7ab..0c8e6e402e2ce008f39d267221c661949a1a1b57 100644 (file)
@@ -5,13 +5,11 @@
 impl<'a, T> Fn<(&'a T,)> for Foo {
   extern "rust-call" fn call(&self, (_,): (T,)) {}
   //~^ ERROR: has an incompatible type for trait
-  //~| expected reference
 }
 
 impl<'a, T> FnMut<(&'a T,)> for Foo {
   extern "rust-call" fn call_mut(&mut self, (_,): (T,)) {}
   //~^ ERROR: has an incompatible type for trait
-  //~| expected reference
 }
 
 impl<'a, T> FnOnce<(&'a T,)> for Foo {
@@ -19,7 +17,6 @@ impl<'a, T> FnOnce<(&'a T,)> for Foo {
 
   extern "rust-call" fn call_once(self, (_,): (T,)) {}
   //~^ ERROR: has an incompatible type for trait
-  //~| expected reference
 }
 
 fn main() {}