Skip to content

Commit 99575b5

Browse files
committed
Update ui tests
1 parent f21a98d commit 99575b5

File tree

1 file changed

+5
-43
lines changed

1 file changed

+5
-43
lines changed

src/test/ui/impl-trait/auto-trait-leak.stderr

+5-43
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
1-
error[E0391]: cycle detected when processing `cycle1::{{impl-Trait}}`
2-
--> $DIR/auto-trait-leak.rs:24:16
3-
|
4-
LL | fn cycle1() -> impl Clone {
5-
| ^^^^^^^^^^
6-
|
7-
note: ...which requires processing `cycle1`...
1+
error[E0391]: cycle detected when processing `cycle1`
82
--> $DIR/auto-trait-leak.rs:24:1
93
|
104
LL | fn cycle1() -> impl Clone {
115
| ^^^^^^^^^^^^^^^^^^^^^^^^^
126
|
137
note: ...which requires evaluating trait selection obligation `impl std::clone::Clone: std::marker::Send`...
148
note: ...which requires processing `cycle2::{{impl-Trait}}`...
15-
--> $DIR/auto-trait-leak.rs:33:16
9+
--> $DIR/auto-trait-leak.rs:31:16
1610
|
1711
LL | fn cycle2() -> impl Clone {
1812
| ^^^^^^^^^^
@@ -22,45 +16,13 @@ note: ...which requires processing `cycle2`...
2216
LL | fn cycle2() -> impl Clone {
2317
| ^^^^^^^^^^^^^^^^^^^^^^^^^
2418
note: ...which requires evaluating trait selection obligation `impl std::clone::Clone: std::marker::Send`...
25-
= note: ...which again requires processing `cycle1::{{impl-Trait}}`, completing the cycle
26-
27-
error[E0391]: cycle detected when processing `cycle1::{{impl-Trait}}`
19+
note: ...which requires processing `cycle1::{{impl-Trait}}`...
2820
--> $DIR/auto-trait-leak.rs:24:16
2921
|
3022
LL | fn cycle1() -> impl Clone {
3123
| ^^^^^^^^^^
32-
|
33-
note: ...which requires processing `cycle1`...
34-
--> $DIR/auto-trait-leak.rs:24:1
35-
|
36-
LL | fn cycle1() -> impl Clone {
37-
| ^^^^^^^^^^^^^^^^^^^^^^^^^
38-
note: ...which requires evaluating trait selection obligation `impl std::clone::Clone: std::marker::Send`...
39-
note: ...which requires processing `cycle2::{{impl-Trait}}`...
40-
--> $DIR/auto-trait-leak.rs:33:16
41-
|
42-
LL | fn cycle2() -> impl Clone {
43-
| ^^^^^^^^^^
44-
note: ...which requires processing `cycle2`...
45-
--> $DIR/auto-trait-leak.rs:33:1
46-
|
47-
LL | fn cycle2() -> impl Clone {
48-
| ^^^^^^^^^^^^^^^^^^^^^^^^^
49-
= note: ...which again requires processing `cycle1::{{impl-Trait}}`, completing the cycle
50-
51-
error[E0277]: `std::rc::Rc<std::string::String>` cannot be sent between threads safely
52-
--> $DIR/auto-trait-leak.rs:27:5
53-
|
54-
LL | send(cycle2().clone());
55-
| ^^^^ `std::rc::Rc<std::string::String>` cannot be sent between threads safely
56-
|
57-
= help: within `impl std::clone::Clone`, the trait `std::marker::Send` is not implemented for `std::rc::Rc<std::string::String>`
58-
= note: required because it appears within the type `impl std::clone::Clone`
59-
note: required by `send`
60-
--> $DIR/auto-trait-leak.rs:16:1
61-
|
62-
LL | fn send<T: Send>(_: T) {}
63-
| ^^^^^^^^^^^^^^^^^^^^^^
24+
= note: ...which again requires processing `cycle1`, completing the cycle
25+
note: cycle used when type-checking all item bodies
6426

6527
error: aborting due to previous error
6628

0 commit comments

Comments
 (0)