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