fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: expected one of `,` or `>`, found `3` 2 --> $DIR/const-expression-suggest-missing-braces.rs:6:17 3 | 4LL | foo::<BAR + 3>(); 5 | ^ expected one of `,` or `>` 6 | 7help: expressions must be enclosed in braces to be used as const generic arguments 8 | 9LL | foo::<{ BAR + 3 }>(); 10 | + + 11 12error: expressions must be enclosed in braces to be used as const generic arguments 13 --> $DIR/const-expression-suggest-missing-braces.rs:17:11 14 | 15LL | foo::<3 + 3>(); 16 | ^^^^^ 17 | 18help: enclose the `const` expression in braces 19 | 20LL | foo::<{ 3 + 3 }>(); 21 | + + 22 23error: expected one of `,` or `>`, found `-` 24 --> $DIR/const-expression-suggest-missing-braces.rs:20:15 25 | 26LL | foo::<BAR - 3>(); 27 | ^ expected one of `,` or `>` 28 | 29help: expressions must be enclosed in braces to be used as const generic arguments 30 | 31LL | foo::<{ BAR - 3 }>(); 32 | + + 33 34error: expected one of `,` or `>`, found `-` 35 --> $DIR/const-expression-suggest-missing-braces.rs:23:15 36 | 37LL | foo::<BAR - BAR>(); 38 | ^ expected one of `,` or `>` 39 | 40help: expressions must be enclosed in braces to be used as const generic arguments 41 | 42LL | foo::<{ BAR - BAR }>(); 43 | + + 44 45error: expressions must be enclosed in braces to be used as const generic arguments 46 --> $DIR/const-expression-suggest-missing-braces.rs:26:11 47 | 48LL | foo::<100 - BAR>(); 49 | ^^^^^^^^^ 50 | 51help: enclose the `const` expression in braces 52 | 53LL | foo::<{ 100 - BAR }>(); 54 | + + 55 56error: expected one of `,` or `>`, found `(` 57 --> $DIR/const-expression-suggest-missing-braces.rs:29:19 58 | 59LL | foo::<bar<i32>()>(); 60 | ^ expected one of `,` or `>` 61 | 62help: expressions must be enclosed in braces to be used as const generic arguments 63 | 64LL | foo::<{ bar<i32>() }>(); 65 | + + 66 67error: expected one of `,` or `>`, found `(` 68 --> $DIR/const-expression-suggest-missing-braces.rs:32:21 69 | 70LL | foo::<bar::<i32>()>(); 71 | ^ expected one of `,` or `>` 72 | 73help: expressions must be enclosed in braces to be used as const generic arguments 74 | 75LL | foo::<{ bar::<i32>() }>(); 76 | + + 77 78error: expected one of `,` or `>`, found `(` 79 --> $DIR/const-expression-suggest-missing-braces.rs:35:21 80 | 81LL | foo::<bar::<i32>() + BAR>(); 82 | ^ expected one of `,` or `>` 83 | 84help: expressions must be enclosed in braces to be used as const generic arguments 85 | 86LL | foo::<{ bar::<i32>() + BAR }>(); 87 | + + 88 89error: expected one of `,` or `>`, found `(` 90 --> $DIR/const-expression-suggest-missing-braces.rs:38:21 91 | 92LL | foo::<bar::<i32>() - BAR>(); 93 | ^ expected one of `,` or `>` 94 | 95help: expressions must be enclosed in braces to be used as const generic arguments 96 | 97LL | foo::<{ bar::<i32>() - BAR }>(); 98 | + + 99 100error: expected one of `,` or `>`, found `-` 101 --> $DIR/const-expression-suggest-missing-braces.rs:41:15 102 | 103LL | foo::<BAR - bar::<i32>()>(); 104 | ^ expected one of `,` or `>` 105 | 106help: expressions must be enclosed in braces to be used as const generic arguments 107 | 108LL | foo::<{ BAR - bar::<i32>() }>(); 109 | + + 110 111error: expected one of `,` or `>`, found `-` 112 --> $DIR/const-expression-suggest-missing-braces.rs:44:15 113 | 114LL | foo::<BAR - bar::<i32>()>(); 115 | ^ expected one of `,` or `>` 116 | 117help: expressions must be enclosed in braces to be used as const generic arguments 118 | 119LL | foo::<{ BAR - bar::<i32>() }>(); 120 | + + 121 122error[E0404]: expected trait, found constant `BAR` 123 --> $DIR/const-expression-suggest-missing-braces.rs:11:11 124 | 125LL | foo::<BAR + BAR>(); 126 | ^^^ not a trait 127 128error[E0404]: expected trait, found constant `BAR` 129 --> $DIR/const-expression-suggest-missing-braces.rs:11:17 130 | 131LL | foo::<BAR + BAR>(); 132 | ^^^ not a trait 133 134error[E0747]: type provided when a constant was expected 135 --> $DIR/const-expression-suggest-missing-braces.rs:11:11 136 | 137LL | foo::<BAR + BAR>(); 138 | ^^^^^^^^^ 139 140error: aborting due to 14 previous errors 141 142Some errors have detailed explanations: E0404, E0747. 143For more information about an error, try `rustc --explain E0404`.