blob: b7ea270f7d1c375cdf0f5a9c247297a70a3a0b69 [file]
error: expected type, found `1`
--> $DIR/const-generic-function.rs:17:19
|
LL | foo::<bar(bar(1, 1), bar(1, 1))>();
| ^ expected type
|
help: expressions must be enclosed in braces to be used as const generic arguments
|
LL | foo::<{ bar(bar(1, 1), bar(1, 1)) }>();
| + +
error: expected type, found `1`
--> $DIR/const-generic-function.rs:18:15
|
LL | foo::<bar(1, 1)>();
| ^ expected type
|
help: expressions must be enclosed in braces to be used as const generic arguments
|
LL | foo::<{ bar(1, 1) }>();
| + +
error: expected type, found `2`
--> $DIR/const-generic-function.rs:19:20
|
LL | foo::<bar(FOO, 2)>();
| ^ expected type
|
help: expressions must be enclosed in braces to be used as const generic arguments
|
LL | foo::<{ bar(FOO, 2) }>();
| + +
error[E0573]: cannot find type `baz` in this scope
--> $DIR/const-generic-function.rs:16:11
|
LL | foo::<baz()>();
| ^^^ not found in this scope
|
= note: a function named `baz` exists in another namespace
error: aborting due to 4 previous errors
For more information about this error, try `rustc --explain E0573`.