Skip to content

Commit 21078c1

Browse files
committed
note ✨ uwuuu
1 parent d75742b commit 21078c1

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

src/test/ui/const-generics/defaults/mismatch.full.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ LL | let e: Example::<13> = ();
1010
found unit type `()`
1111

1212
error[E0308]: mismatched types
13-
--> $DIR/mismatch.rs:14:34
13+
--> $DIR/mismatch.rs:15:34
1414
|
1515
LL | let e: Example2::<u32, 13> = ();
1616
| ------------------- ^^ expected struct `Example2`, found `()`
@@ -21,7 +21,7 @@ LL | let e: Example2::<u32, 13> = ();
2121
found unit type `()`
2222

2323
error[E0308]: mismatched types
24-
--> $DIR/mismatch.rs:16:34
24+
--> $DIR/mismatch.rs:18:34
2525
|
2626
LL | let e: Example3::<13, u32> = ();
2727
| ------------------- ^^ expected struct `Example3`, found `()`
@@ -32,7 +32,7 @@ LL | let e: Example3::<13, u32> = ();
3232
found unit type `()`
3333

3434
error[E0308]: mismatched types
35-
--> $DIR/mismatch.rs:18:28
35+
--> $DIR/mismatch.rs:21:28
3636
|
3737
LL | let e: Example3::<7> = ();
3838
| ------------- ^^ expected struct `Example3`, found `()`
@@ -43,7 +43,7 @@ LL | let e: Example3::<7> = ();
4343
found unit type `()`
4444

4545
error[E0308]: mismatched types
46-
--> $DIR/mismatch.rs:20:28
46+
--> $DIR/mismatch.rs:24:28
4747
|
4848
LL | let e: Example4::<7> = ();
4949
| ------------- ^^ expected struct `Example4`, found `()`

src/test/ui/const-generics/defaults/mismatch.min.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ LL | let e: Example::<13> = ();
1010
found unit type `()`
1111

1212
error[E0308]: mismatched types
13-
--> $DIR/mismatch.rs:14:34
13+
--> $DIR/mismatch.rs:15:34
1414
|
1515
LL | let e: Example2::<u32, 13> = ();
1616
| ------------------- ^^ expected struct `Example2`, found `()`
@@ -21,7 +21,7 @@ LL | let e: Example2::<u32, 13> = ();
2121
found unit type `()`
2222

2323
error[E0308]: mismatched types
24-
--> $DIR/mismatch.rs:16:34
24+
--> $DIR/mismatch.rs:18:34
2525
|
2626
LL | let e: Example3::<13, u32> = ();
2727
| ------------------- ^^ expected struct `Example3`, found `()`
@@ -32,7 +32,7 @@ LL | let e: Example3::<13, u32> = ();
3232
found unit type `()`
3333

3434
error[E0308]: mismatched types
35-
--> $DIR/mismatch.rs:18:28
35+
--> $DIR/mismatch.rs:21:28
3636
|
3737
LL | let e: Example3::<7> = ();
3838
| ------------- ^^ expected struct `Example3`, found `()`
@@ -43,7 +43,7 @@ LL | let e: Example3::<7> = ();
4343
found unit type `()`
4444

4545
error[E0308]: mismatched types
46-
--> $DIR/mismatch.rs:20:28
46+
--> $DIR/mismatch.rs:24:28
4747
|
4848
LL | let e: Example4::<7> = ();
4949
| ------------- ^^ expected struct `Example4`, found `()`

src/test/ui/const-generics/defaults/mismatch.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,17 @@ pub struct Example4<const N: usize=13, const M: usize=4>;
1111
fn main() {
1212
let e: Example::<13> = ();
1313
//~^ Error: mismatched types
14+
//~| expected struct `Example`
1415
let e: Example2::<u32, 13> = ();
1516
//~^ Error: mismatched types
17+
//~| expected struct `Example2`
1618
let e: Example3::<13, u32> = ();
1719
//~^ Error: mismatched types
20+
//~| expected struct `Example3`
1821
let e: Example3::<7> = ();
1922
//~^ Error: mismatched types
23+
//~| expected struct `Example3<7_usize>`
2024
let e: Example4::<7> = ();
2125
//~^ Error: mismatched types
26+
//~| expected struct `Example4<7_usize>`
2227
}

0 commit comments

Comments
 (0)