]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/reveal_local.stderr
Auto merge of #106458 - albertlarsan68:move-tests, r=jyn514
[rust.git] / tests / ui / type-alias-impl-trait / reveal_local.stderr
1 error[E0391]: cycle detected when computing type of `Foo::{opaque#0}`
2   --> $DIR/reveal_local.rs:5:12
3    |
4 LL | type Foo = impl Debug;
5    |            ^^^^^^^^^^
6    |
7 note: ...which requires type-checking `not_good`...
8   --> $DIR/reveal_local.rs:13:5
9    |
10 LL |     is_send::<Foo>();
11    |     ^^^^^^^^^^^^^^
12    = note: ...which requires evaluating trait selection obligation `Foo: core::marker::Send`...
13    = note: ...which again requires computing type of `Foo::{opaque#0}`, completing the cycle
14 note: cycle used when checking item types in top-level module
15   --> $DIR/reveal_local.rs:1:1
16    |
17 LL | / #![feature(type_alias_impl_trait)]
18 LL | |
19 LL | | use std::fmt::Debug;
20 LL | |
21 ...  |
22 LL | |
23 LL | | fn main() {}
24    | |____________^
25
26 error: aborting due to previous error
27
28 For more information about this error, try `rustc --explain E0391`.