]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0121.stderr
Merge commit 'cb7915b00c235e9b5861564f3be78dba330980ee' into clippyup
[rust.git] / src / test / ui / error-codes / E0121.stderr
1 error[E0121]: the type placeholder `_` is not allowed within types on item signatures for return types
2   --> $DIR/E0121.rs:1:13
3    |
4 LL | fn foo() -> _ { 5 }
5    |             ^
6    |             |
7    |             not allowed in type signatures
8    |             help: replace with the correct return type: `i32`
9
10 error[E0121]: the type placeholder `_` is not allowed within types on item signatures for static variables
11   --> $DIR/E0121.rs:3:13
12    |
13 LL | static BAR: _ = "test";
14    |             ^
15    |             |
16    |             not allowed in type signatures
17    |             help: replace with the correct type: `&str`
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0121`.