fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
2.8 KiB69 linesraw
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
27   |
28LL |     drop(<() as Foo>::copy_me(&x));
29   |                               ^^
30   |
31   = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`alias_bound_unsound`)
32
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
51   |
52LL |     drop(<() as Foo>::copy_me(&x));
53   |          ^^^^^^^^^^^^^^^^^^^^^^^^
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
65
66error: aborting due to 7 previous errors
67
68Some errors have detailed explanations: E0275, E0282.
69For more information about an error, try `rustc --explain E0275`.