|
1 | 1 | error[E0275]: overflow evaluating the requirement `String: Copy` |
2 | | - --> $DIR/alias-bound-unsound.rs:18:38 |
| 2 | + --> $DIR/alias-bound-unsound.rs:22:38 |
3 | 3 | | |
4 | 4 | LL | type Item = String where String: Copy; |
5 | 5 | | ^^^^ |
6 | 6 | | |
7 | 7 | note: the requirement `String: Copy` appears on the `impl`'s associated type `Item` but not on the corresponding trait's associated type |
8 | | - --> $DIR/alias-bound-unsound.rs:8:10 |
| 8 | + --> $DIR/alias-bound-unsound.rs:12:10 |
9 | 9 | | |
10 | 10 | LL | trait Foo { |
11 | 11 | | --- in this trait |
12 | 12 | LL | type Item: Copy |
13 | 13 | | ^^^^ this trait's associated type doesn't have the requirement `String: Copy` |
14 | 14 |
|
15 | 15 | error[E0275]: overflow evaluating the requirement `String <: <() as Foo>::Item` |
16 | | - --> $DIR/alias-bound-unsound.rs:24:31 |
| 16 | + --> $DIR/alias-bound-unsound.rs:28:43 |
17 | 17 | | |
18 | | -LL | drop(<() as Foo>::copy_me(&x)); |
19 | | - | ^^ |
| 18 | +LL | let _ = identity(<() as Foo>::copy_me(&x)); |
| 19 | + | ^^ |
20 | 20 |
|
21 | 21 | error[E0275]: overflow evaluating the requirement `<() as Foo>::Item == _` |
22 | | - --> $DIR/alias-bound-unsound.rs:24:10 |
| 22 | + --> $DIR/alias-bound-unsound.rs:28:22 |
23 | 23 | | |
24 | | -LL | drop(<() as Foo>::copy_me(&x)); |
25 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^ |
| 24 | +LL | let _ = identity(<() as Foo>::copy_me(&x)); |
| 25 | + | ^^^^^^^^^^^^^^^^^^^^^^^^ |
26 | 26 |
|
27 | 27 | error[E0275]: overflow evaluating the requirement `<() as Foo>::Item == _` |
28 | | - --> $DIR/alias-bound-unsound.rs:24:10 |
| 28 | + --> $DIR/alias-bound-unsound.rs:28:22 |
29 | 29 | | |
30 | | -LL | drop(<() as Foo>::copy_me(&x)); |
31 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^ |
| 30 | +LL | let _ = identity(<() as Foo>::copy_me(&x)); |
| 31 | + | ^^^^^^^^^^^^^^^^^^^^^^^^ |
32 | 32 | | |
33 | 33 | = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
34 | 34 |
|
35 | 35 | error[E0275]: overflow evaluating the requirement `&<() as Foo>::Item well-formed` |
36 | | - --> $DIR/alias-bound-unsound.rs:24:31 |
| 36 | + --> $DIR/alias-bound-unsound.rs:28:43 |
37 | 37 | | |
38 | | -LL | drop(<() as Foo>::copy_me(&x)); |
39 | | - | ^^ |
| 38 | +LL | let _ = identity(<() as Foo>::copy_me(&x)); |
| 39 | + | ^^ |
40 | 40 |
|
41 | 41 | error[E0275]: overflow evaluating the requirement `<() as Foo>::Item well-formed` |
42 | | - --> $DIR/alias-bound-unsound.rs:24:10 |
| 42 | + --> $DIR/alias-bound-unsound.rs:28:22 |
43 | 43 | | |
44 | | -LL | drop(<() as Foo>::copy_me(&x)); |
45 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^ |
| 44 | +LL | let _ = identity(<() as Foo>::copy_me(&x)); |
| 45 | + | ^^^^^^^^^^^^^^^^^^^^^^^^ |
46 | 46 |
|
47 | 47 | error[E0275]: overflow evaluating the requirement `<() as Foo>::Item == _` |
48 | | - --> $DIR/alias-bound-unsound.rs:24:10 |
| 48 | + --> $DIR/alias-bound-unsound.rs:28:22 |
49 | 49 | | |
50 | | -LL | drop(<() as Foo>::copy_me(&x)); |
51 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^ |
| 50 | +LL | let _ = identity(<() as Foo>::copy_me(&x)); |
| 51 | + | ^^^^^^^^^^^^^^^^^^^^^^^^ |
52 | 52 | | |
53 | 53 | = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
54 | 54 |
|
55 | 55 | error[E0275]: overflow evaluating the requirement `<() as Foo>::Item == _` |
56 | | - --> $DIR/alias-bound-unsound.rs:24:31 |
| 56 | + --> $DIR/alias-bound-unsound.rs:28:43 |
57 | 57 | | |
58 | | -LL | drop(<() as Foo>::copy_me(&x)); |
59 | | - | ^^ |
| 58 | +LL | let _ = identity(<() as Foo>::copy_me(&x)); |
| 59 | + | ^^ |
60 | 60 |
|
61 | 61 | error: aborting due to 8 previous errors |
62 | 62 |
|
|
0 commit comments