summaryrefslogtreecommitdiffstats
path: root/tests/ui/generator/layout-error.stderr
blob: ea3b25551c42908b1db0e33a4dee0eeba5750521 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
error[E0425]: cannot find value `Foo` in this scope
  --> $DIR/layout-error.rs:21:17
   |
LL |         let a = Foo;
   |                 ^^^ not found in this scope

error: cannot check whether the hidden type of `layout_error[b009]::main::F::{opaque#0}` satisfies auto traits
  --> $DIR/layout-error.rs:26:18
   |
LL |     static POOL: Task<F> = Task::new();
   |                  ^^^^^^^
   |
note: opaque type is declared here
  --> $DIR/layout-error.rs:24:14
   |
LL |     type F = impl Future;
   |              ^^^^^^^^^^^
note: required because it appears within the type `Task<F>`
  --> $DIR/layout-error.rs:9:12
   |
LL | pub struct Task<F: Future>(F);
   |            ^^^^
   = note: shared static variables must have a type that implements `Sync`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0425`.