Skip to content

Commit 4879338

Browse files
authored
Rollup merge of rust-lang#122888 - matthiaskrgr:evenmoretests, r=compiler-errors
add a couple more tests
2 parents 1fe9713 + 2171243 commit 4879338

File tree

4 files changed

+50
-1
lines changed

4 files changed

+50
-1
lines changed

tests/ui/const-generics/occurs-check/unify-fixpoint.rs

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// -Zunstable-options added as test for ICE #97725 (left == right)`
2+
// left: `Binder(<[u8; _] as std::default::Default>, [])`,
3+
// right: `Binder(<[u8; 4] as std::default::Default>, [])
4+
5+
//@ compile-flags: -Zunstable-options
16
//@ check-pass
27
#![feature(generic_const_exprs)] //~ WARN the feature `generic_const_exprs` is incomplete
38

tests/ui/const-generics/occurs-check/unify-fixpoint.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes
2-
--> $DIR/unify-fixpoint.rs:2:12
2+
--> $DIR/unify-fixpoint.rs:7:12
33
|
44
LL | #![feature(generic_const_exprs)]
55
| ^^^^^^^^^^^^^^^^^^^
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// ICE #105210 self.lines.iter().all(|r| !r.iter().any(|sc| sc.chr == \'\\t\'))
2+
// ignore-tidy-tab
3+
//@ edition:2021
4+
pub fn main() {}
5+
6+
fn box () {
7+
(( h (const {( default ( await ( await ( (move {await((((}}
8+
//~^ ERROR mismatched closing delimiter: `}`
9+
//~^^ ERROR mismatched closing delimiter: `}`
10+
//~ ERROR this file contains an unclosed delimiter
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
error: mismatched closing delimiter: `}`
2+
--> $DIR/parser-ice-ed2021-await-105210.rs:7:58
3+
|
4+
LL | (( h (const {( default ( await ( await ( (move {await((((}}
5+
| - ^^ mismatched closing delimiter
6+
| | |
7+
| | unclosed delimiter
8+
| closing delimiter possibly meant for this
9+
10+
error: mismatched closing delimiter: `}`
11+
--> $DIR/parser-ice-ed2021-await-105210.rs:7:43
12+
|
13+
LL | (( h (const {( default ( await ( await ( (move {await((((}}
14+
| - ^ ^ mismatched closing delimiter
15+
| | |
16+
| | unclosed delimiter
17+
| closing delimiter possibly meant for this
18+
19+
error: this file contains an unclosed delimiter
20+
--> $DIR/parser-ice-ed2021-await-105210.rs:10:52
21+
|
22+
LL | fn box () {
23+
| - unclosed delimiter
24+
LL | (( h (const {( default ( await ( await ( (move {await((((}}
25+
| -- - unclosed delimiter
26+
| ||
27+
| |unclosed delimiter
28+
| unclosed delimiter
29+
...
30+
LL |
31+
| ^
32+
33+
error: aborting due to 3 previous errors
34+

0 commit comments

Comments
 (0)