fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0391]: cycle detected when computing type of opaque `cycle1::{opaque#0}` 2 --> $DIR/auto-trait-leak.rs:11:16 3 | 4LL | fn cycle1() -> impl Clone { 5 | ^^^^^^^^^^ 6 | 7note: ...which requires type-checking `cycle1`... 8 --> $DIR/auto-trait-leak.rs:14:5 9 | 10LL | send(cycle2().clone()); 11 | ^^^^ 12 = note: ...which requires evaluating trait selection obligation `cycle2::{opaque#0}: core::marker::Send`... 13note: ...which requires computing type of opaque `cycle2::{opaque#0}`... 14 --> $DIR/auto-trait-leak.rs:19:16 15 | 16LL | fn cycle2() -> impl Clone { 17 | ^^^^^^^^^^ 18note: ...which requires type-checking `cycle2`... 19 --> $DIR/auto-trait-leak.rs:20:5 20 | 21LL | send(cycle1().clone()); 22 | ^^^^ 23 = note: ...which requires evaluating trait selection obligation `cycle1::{opaque#0}: core::marker::Send`... 24 = note: ...which again requires computing type of opaque `cycle1::{opaque#0}`, completing the cycle 25note: cycle used when computing type of `cycle1::{opaque#0}` 26 --> $DIR/auto-trait-leak.rs:11:16 27 | 28LL | fn cycle1() -> impl Clone { 29 | ^^^^^^^^^^ 30 = note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information 31 32error[E0391]: cycle detected when computing type of opaque `cycle1::{opaque#0}` 33 --> $DIR/auto-trait-leak.rs:11:16 34 | 35LL | fn cycle1() -> impl Clone { 36 | ^^^^^^^^^^ 37 | 38note: ...which requires type-checking `cycle1`... 39 --> $DIR/auto-trait-leak.rs:14:5 40 | 41LL | send(cycle2().clone()); 42 | ^^^^ 43 = note: ...which requires evaluating trait selection obligation `cycle2::{opaque#0}: core::marker::Send`... 44note: ...which requires computing type of opaque `cycle2::{opaque#0}`... 45 --> $DIR/auto-trait-leak.rs:19:16 46 | 47LL | fn cycle2() -> impl Clone { 48 | ^^^^^^^^^^ 49note: ...which requires type-checking `cycle2`... 50 --> $DIR/auto-trait-leak.rs:19:1 51 | 52LL | fn cycle2() -> impl Clone { 53 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 54 = note: ...which again requires computing type of opaque `cycle1::{opaque#0}`, completing the cycle 55note: cycle used when computing type of `cycle1::{opaque#0}` 56 --> $DIR/auto-trait-leak.rs:11:16 57 | 58LL | fn cycle1() -> impl Clone { 59 | ^^^^^^^^^^ 60 = note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information 61 62error: cannot check whether the hidden type of opaque type satisfies auto traits 63 --> $DIR/auto-trait-leak.rs:20:10 64 | 65LL | send(cycle1().clone()); 66 | ---- ^^^^^^^^^^^^^^^^ 67 | | 68 | required by a bound introduced by this call 69 | 70note: opaque type is declared here 71 --> $DIR/auto-trait-leak.rs:11:16 72 | 73LL | fn cycle1() -> impl Clone { 74 | ^^^^^^^^^^ 75note: this item depends on auto traits of the hidden type, but may also be registering the hidden type. This is not supported right now. You can try moving the opaque type and the item that actually registers a hidden type into a new submodule 76 --> $DIR/auto-trait-leak.rs:19:4 77 | 78LL | fn cycle2() -> impl Clone { 79 | ^^^^^^ 80note: required by a bound in `send` 81 --> $DIR/auto-trait-leak.rs:4:12 82 | 83LL | fn send<T: Send>(_: T) {} 84 | ^^^^ required by this bound in `send` 85 86error: aborting due to 3 previous errors 87 88For more information about this error, try `rustc --explain E0391`.