added pretty_print_const_expr
This commit is contained in:
parent
9023f908cf
commit
7c4b07d5e8
4 changed files with 160 additions and 12 deletions
|
@ -19,8 +19,8 @@ where
|
|||
//~^^ ERROR: unconstrained generic constant
|
||||
//~^^^ ERROR: function takes 1 generic argument but 2 generic arguments were supplied
|
||||
//~^^^^ ERROR: unconstrained generic constant
|
||||
//~^^^^^ ERROR: unconstrained generic constant `{const expr}`
|
||||
//~^^^^^^ ERROR: unconstrained generic constant `{const expr}`
|
||||
//~^^^^^ ERROR: unconstrained generic constant `L + 1 + L`
|
||||
//~^^^^^^ ERROR: unconstrained generic constant `L + 1`
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
|
|
|
@ -52,19 +52,17 @@ LL | | }
|
|||
LL | | }],
|
||||
| |_____^ required by this bound in `foo`
|
||||
|
||||
error: unconstrained generic constant `{const expr}`
|
||||
error: unconstrained generic constant `L + 1 + L`
|
||||
--> $DIR/issue_114151.rs:17:5
|
||||
|
|
||||
LL | foo::<_, L>([(); L + 1 + L]);
|
||||
| ^^^^^^^^^^^
|
||||
|
||||
error: unconstrained generic constant `{const expr}`
|
||||
error: unconstrained generic constant `L + 1`
|
||||
--> $DIR/issue_114151.rs:17:5
|
||||
|
|
||||
LL | foo::<_, L>([(); L + 1 + L]);
|
||||
| ^^^^^^^^^^^
|
||||
|
|
||||
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
||||
|
||||
error: aborting due to 6 previous errors
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue