]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/self/self-infer.stderr
Fixing bad suggestion for `_` in `const` type when a function #81885
[rust.git] / src / test / ui / self / self-infer.stderr
index 1475b212b56a6a3b89d20c3e13f28e7f3294bb90..f91cfe5eb621bb5ae27066001966abc47ae742e0 100644 (file)
@@ -3,22 +3,12 @@ error[E0121]: the type placeholder `_` is not allowed within types on item signa
    |
 LL |     fn f(self: _) {}
    |                ^ not allowed in type signatures
-   |
-help: use type parameters instead
-   |
-LL |     fn f<T>(self: T) {}
-   |         ^^^       ^
 
 error[E0121]: the type placeholder `_` is not allowed within types on item signatures
   --> $DIR/self-infer.rs:5:17
    |
 LL |     fn g(self: &_) {}
    |                 ^ not allowed in type signatures
-   |
-help: use type parameters instead
-   |
-LL |     fn g<T>(self: &T) {}
-   |         ^^^        ^
 
 error: aborting due to 2 previous errors