Skip to content

Commit f888724

Browse files
committed
added pretty_print_const_expr
1 parent 70c1ced commit f888724

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

tests/ui/const-generics/generic_const_exprs/const_kind_expr/issue_114151.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ where
2020
//~^^^ ERROR: function takes 1 generic argument but 2 generic arguments were supplied
2121
//~^^^^ ERROR: unconstrained generic constant
2222
//~^^^^^ ERROR: unconstrained generic constant `L + 1 + L`
23+
<<<<<<< HEAD
2324
//~^^^^^^ ERROR: unconstrained generic constant `(L - 1) + 1 + L`
25+
=======
26+
//~^^^^^ ERROR: unconstrained generic constant `L + 1`
27+
>>>>>>> c3f8f3834ae (uh)
2428
}
2529

2630
fn main() {}

tests/ui/const-generics/generic_const_exprs/const_kind_expr/issue_114151.stderr

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@ error: unconstrained generic constant `L + 1 + L`
5858
LL | foo::<_, L>([(); L + 1 + L]);
5959
| ^^^^^^^^^^^
6060

61+
<<<<<<< HEAD
6162
error: unconstrained generic constant `{const expr}`
63+
=======
64+
error: unconstrained generic constant `L + 1`
65+
>>>>>>> c3f8f3834ae (uh)
6266
--> $DIR/issue_114151.rs:17:5
6367
|
6468
LL | foo::<_, L>([(); L + 1 + L]);

0 commit comments

Comments
 (0)