about summary refs log tree commit diff
path: root/tests/ui/impl-trait/in-bindings/bad-nesting.stderr
blob: d82ce733254dbb37c3667867d15a49582198b3bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error[E0666]: nested `impl Trait` is not allowed
  --> $DIR/bad-nesting.rs:8:21
   |
LL |     let x: impl Foo<impl Sized> = ();
   |            ---------^^^^^^^^^^-
   |            |        |
   |            |        nested `impl Trait` here
   |            outer `impl Trait`

error: aborting due to 1 previous error

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