2024-01-08 15:29:44 +01:00
|
|
|
error[E0275]: overflow evaluating the requirement `String: Copy`
|
|
|
|
--> $DIR/alias-bound-unsound.rs:18:38
|
2023-07-07 19:22:22 +00:00
|
|
|
|
|
|
|
|
LL | type Item = String where String: Copy;
|
2024-01-08 15:29:44 +01:00
|
|
|
| ^^^^
|
2023-07-07 19:22:22 +00:00
|
|
|
|
|
2024-01-08 15:29:44 +01:00
|
|
|
note: the requirement `String: Copy` appears on the `impl`'s associated type `Item` but not on the corresponding trait's associated type
|
|
|
|
--> $DIR/alias-bound-unsound.rs:8:10
|
2023-07-07 19:22:22 +00:00
|
|
|
|
|
2024-01-08 15:29:44 +01:00
|
|
|
LL | trait Foo {
|
|
|
|
| --- in this trait
|
2023-07-07 19:22:22 +00:00
|
|
|
LL | type Item: Copy
|
2024-01-08 15:29:44 +01:00
|
|
|
| ^^^^ this trait's associated type doesn't have the requirement `String: Copy`
|
2023-07-07 19:22:22 +00:00
|
|
|
|
2023-08-14 13:09:53 +00:00
|
|
|
error[E0275]: overflow evaluating the requirement `String <: <() as Foo>::Item`
|
2023-07-07 19:22:22 +00:00
|
|
|
--> $DIR/alias-bound-unsound.rs:24:31
|
2023-06-23 15:58:09 +00:00
|
|
|
|
|
|
|
|
LL | drop(<() as Foo>::copy_me(&x));
|
2023-06-27 23:13:50 +02:00
|
|
|
| ^^
|
2023-06-23 15:58:09 +00:00
|
|
|
|
2023-12-18 19:22:43 +00:00
|
|
|
error[E0275]: overflow evaluating the requirement `<() as Foo>::Item == _`
|
2023-08-14 13:09:53 +00:00
|
|
|
--> $DIR/alias-bound-unsound.rs:24:10
|
2023-07-07 19:22:22 +00:00
|
|
|
|
|
|
|
|
LL | drop(<() as Foo>::copy_me(&x));
|
2023-08-14 13:09:53 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-07-07 19:22:22 +00:00
|
|
|
|
2023-08-14 13:09:53 +00:00
|
|
|
error[E0275]: overflow evaluating the requirement `&<() as Foo>::Item well-formed`
|
|
|
|
--> $DIR/alias-bound-unsound.rs:24:31
|
2023-06-23 15:58:09 +00:00
|
|
|
|
|
|
|
|
LL | drop(<() as Foo>::copy_me(&x));
|
2023-08-14 13:09:53 +00:00
|
|
|
| ^^
|
2023-07-07 19:22:22 +00:00
|
|
|
|
2023-08-14 13:09:53 +00:00
|
|
|
error[E0275]: overflow evaluating the requirement `<() as Foo>::Item well-formed`
|
2023-07-07 19:22:22 +00:00
|
|
|
--> $DIR/alias-bound-unsound.rs:24:10
|
|
|
|
|
|
|
|
|
LL | drop(<() as Foo>::copy_me(&x));
|
2023-08-14 13:09:53 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-06-23 15:58:09 +00:00
|
|
|
|
2024-01-10 16:30:07 +00:00
|
|
|
error[E0275]: overflow evaluating the requirement `<() as Foo>::Item == _`
|
2023-12-08 17:29:48 +01:00
|
|
|
--> $DIR/alias-bound-unsound.rs:24:10
|
|
|
|
|
|
|
|
|
LL | drop(<() as Foo>::copy_me(&x));
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2024-01-10 16:30:07 +00:00
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2023-12-08 17:29:48 +01:00
|
|
|
|
2024-08-12 11:59:04 -04:00
|
|
|
error[E0275]: overflow evaluating the requirement `<() as Foo>::Item == _`
|
|
|
|
--> $DIR/alias-bound-unsound.rs:24:31
|
|
|
|
|
|
|
|
|
LL | drop(<() as Foo>::copy_me(&x));
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: aborting due to 7 previous errors
|
2023-04-22 03:11:25 +00:00
|
|
|
|
2023-08-14 13:09:53 +00:00
|
|
|
For more information about this error, try `rustc --explain E0275`.
|