1 error: expected one of `,` or `>`, found `3`
2 --> $DIR/const-expression-suggest-missing-braces.rs:6:17
5 | ^ expected one of `,` or `>`
7 help: expressions must be enclosed in braces to be used as const generic arguments
9 LL | foo::<{ BAR + 3 }>();
12 error: expressions must be enclosed in braces to be used as const generic arguments
13 --> $DIR/const-expression-suggest-missing-braces.rs:17:11
18 help: enclose the `const` expression in braces
20 LL | foo::<{ 3 + 3 }>();
23 error: expected one of `,` or `>`, found `-`
24 --> $DIR/const-expression-suggest-missing-braces.rs:20:15
26 LL | foo::<BAR - 3>();
27 | ^ expected one of `,` or `>`
29 help: expressions must be enclosed in braces to be used as const generic arguments
31 LL | foo::<{ BAR - 3 }>();
34 error: expected one of `,` or `>`, found `-`
35 --> $DIR/const-expression-suggest-missing-braces.rs:23:15
37 LL | foo::<BAR - BAR>();
38 | ^ expected one of `,` or `>`
40 help: expressions must be enclosed in braces to be used as const generic arguments
42 LL | foo::<{ BAR - BAR }>();
45 error: expressions must be enclosed in braces to be used as const generic arguments
46 --> $DIR/const-expression-suggest-missing-braces.rs:26:11
48 LL | foo::<100 - BAR>();
51 help: enclose the `const` expression in braces
53 LL | foo::<{ 100 - BAR }>();
56 error: expected one of `,` or `>`, found `(`
57 --> $DIR/const-expression-suggest-missing-braces.rs:29:19
59 LL | foo::<bar<i32>()>();
60 | ^ expected one of `,` or `>`
62 help: expressions must be enclosed in braces to be used as const generic arguments
64 LL | foo::<{ bar<i32>() }>();
67 error: expected one of `,` or `>`, found `(`
68 --> $DIR/const-expression-suggest-missing-braces.rs:32:21
70 LL | foo::<bar::<i32>()>();
71 | ^ expected one of `,` or `>`
73 help: expressions must be enclosed in braces to be used as const generic arguments
75 LL | foo::<{ bar::<i32>() }>();
78 error: expected one of `,` or `>`, found `(`
79 --> $DIR/const-expression-suggest-missing-braces.rs:35:21
81 LL | foo::<bar::<i32>() + BAR>();
82 | ^ expected one of `,` or `>`
84 help: expressions must be enclosed in braces to be used as const generic arguments
86 LL | foo::<{ bar::<i32>() + BAR }>();
89 error: expected one of `,` or `>`, found `(`
90 --> $DIR/const-expression-suggest-missing-braces.rs:38:21
92 LL | foo::<bar::<i32>() - BAR>();
93 | ^ expected one of `,` or `>`
95 help: expressions must be enclosed in braces to be used as const generic arguments
97 LL | foo::<{ bar::<i32>() - BAR }>();
100 error: expected one of `,` or `>`, found `-`
101 --> $DIR/const-expression-suggest-missing-braces.rs:41:15
103 LL | foo::<BAR - bar::<i32>()>();
104 | ^ expected one of `,` or `>`
106 help: expressions must be enclosed in braces to be used as const generic arguments
108 LL | foo::<{ BAR - bar::<i32>() }>();
111 error: expected one of `,` or `>`, found `-`
112 --> $DIR/const-expression-suggest-missing-braces.rs:44:15
114 LL | foo::<BAR - bar::<i32>()>();
115 | ^ expected one of `,` or `>`
117 help: expressions must be enclosed in braces to be used as const generic arguments
119 LL | foo::<{ BAR - bar::<i32>() }>();
122 error[E0404]: expected trait, found constant `BAR`
123 --> $DIR/const-expression-suggest-missing-braces.rs:11:11
125 LL | foo::<BAR + BAR>();
128 error[E0404]: expected trait, found constant `BAR`
129 --> $DIR/const-expression-suggest-missing-braces.rs:11:17
131 LL | foo::<BAR + BAR>();
134 error[E0747]: type provided when a constant was expected
135 --> $DIR/const-expression-suggest-missing-braces.rs:11:11
137 LL | foo::<BAR + BAR>();
140 error: aborting due to 14 previous errors
142 Some errors have detailed explanations: E0404, E0747.
143 For more information about an error, try `rustc --explain E0404`.