]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/suggestions/constrain-trait.rs
Unify output of "variant not found" errors
[rust.git] / src / test / ui / suggestions / constrain-trait.rs
index 4ef0eff5bd7699b1417319c8b4c72ce203759043..99ccf7a7f3bdf712cf43b19f7c3576ed493318ad 100644 (file)
@@ -12,13 +12,13 @@ trait GetString {
 
 trait UseString: std::fmt::Debug {
     fn use_string(&self) {
-        println!("{:?}", self.get_a()); //~ ERROR no method named `get_a` found for type `&Self`
+        println!("{:?}", self.get_a()); //~ ERROR no method named `get_a` found
     }
 }
 
 trait UseString2 {
     fn use_string(&self) {
-        println!("{:?}", self.get_a()); //~ ERROR no method named `get_a` found for type `&Self`
+        println!("{:?}", self.get_a()); //~ ERROR no method named `get_a` found
     }
 }