]> git.proxmox.com Git - rustc.git/blame - tests/ui/traits/new-solver/alias-bound-unsound.stderr
New upstream version 1.73.0+dfsg1
[rustc.git] / tests / ui / traits / new-solver / alias-bound-unsound.stderr
CommitLineData
add651ee
FG
1error[E0275]: overflow evaluating the requirement `<() as Foo>::Item: Copy`
2 --> $DIR/alias-bound-unsound.rs:18:17
3 |
4LL | type Item = String where String: Copy;
5 | ^^^^^^
6 |
7 = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`alias_bound_unsound`)
8note: required by a bound in `Foo::Item`
9 --> $DIR/alias-bound-unsound.rs:8:16
10 |
11LL | type Item: Copy
12 | ^^^^ required by this bound in `Foo::Item`
13
14error[E0282]: type annotations needed
15 --> $DIR/alias-bound-unsound.rs:24:5
16 |
17LL | drop(<() as Foo>::copy_me(&x));
18 | ^^^^ cannot infer type of the type parameter `T` declared on the function `drop`
19 |
20help: consider specifying the generic argument
21 |
22LL | drop::<T>(<() as Foo>::copy_me(&x));
23 | +++++
24
25error[E0275]: overflow evaluating the requirement `&<() as Foo>::Item well-formed`
26 --> $DIR/alias-bound-unsound.rs:24:31
49aad941
FG
27 |
28LL | drop(<() as Foo>::copy_me(&x));
fe692bf9 29 | ^^
add651ee
FG
30 |
31 = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`alias_bound_unsound`)
49aad941 32
add651ee
FG
33error[E0275]: overflow evaluating the requirement `String <: <() as Foo>::Item`
34 --> $DIR/alias-bound-unsound.rs:24:31
35 |
36LL | drop(<() as Foo>::copy_me(&x));
37 | ^^
38 |
39 = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`alias_bound_unsound`)
40
41error[E0275]: overflow evaluating the requirement `<() as Foo>::Item well-formed`
42 --> $DIR/alias-bound-unsound.rs:24:10
43 |
44LL | drop(<() as Foo>::copy_me(&x));
45 | ^^^^^^^^^^^^^^^^^^^^^^^^
46 |
47 = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`alias_bound_unsound`)
48
49error[E0275]: overflow evaluating the requirement `<() as Foo>::Item == _`
50 --> $DIR/alias-bound-unsound.rs:24:10
49aad941
FG
51 |
52LL | drop(<() as Foo>::copy_me(&x));
53 | ^^^^^^^^^^^^^^^^^^^^^^^^
add651ee
FG
54 |
55 = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`alias_bound_unsound`)
56
57error[E0275]: overflow evaluating the requirement `<() as Foo>::Item: Sized`
58 --> $DIR/alias-bound-unsound.rs:24:10
59 |
60LL | drop(<() as Foo>::copy_me(&x));
61 | ^^^^^^^^^^^^^^^^^^^^
62 |
63 = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`alias_bound_unsound`)
64 = note: the return type of a function must have a statically known size
49aad941 65
add651ee 66error: aborting due to 7 previous errors
49aad941 67
add651ee
FG
68Some errors have detailed explanations: E0275, E0282.
69For more information about an error, try `rustc --explain E0275`.