]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/issue-80779.stderr
Rollup merge of #97317 - GuillaumeGomez:gui-settings-text-click, r=jsha
[rust.git] / src / test / ui / typeck / issue-80779.stderr
1 error[E0121]: the placeholder `_` is not allowed within types on item signatures for return types
2   --> $DIR/issue-80779.rs:10:28
3    |
4 LL | pub fn g(_: T<'static>) -> _ {}
5    |                            ^
6    |                            |
7    |                            not allowed in type signatures
8    |                            help: replace with the correct return type: `()`
9
10 error[E0121]: the placeholder `_` is not allowed within types on item signatures for return types
11   --> $DIR/issue-80779.rs:5:29
12    |
13 LL | pub fn f<'a>(val: T<'a>) -> _ {
14    |                             ^
15    |                             |
16    |                             not allowed in type signatures
17    |                             help: replace with the correct return type: `()`
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0121`.