]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generics/generic-function-item-where-type.stderr
Improve diagnostics for function passed when a type was expected.
[rust.git] / src / test / ui / generics / generic-function-item-where-type.stderr
1 error[E0747]: constant provided when a type was expected
2   --> $DIR/generic-function-item-where-type.rs:4:11
3    |
4 LL |     foo::<main>()
5    |           ^^^^
6    |
7    = help: `main` is a function item, not a type
8    = help: function item types cannot be named directly
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0747`.