]> git.lizzy.rs Git - rust.git/blob - tests/ui/generics/generic-function-item-where-type.stderr
Rollup merge of #104965 - zacklukem:p-option-as_ref-docs, r=scottmcm
[rust.git] / tests / 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`.