about summary refs log tree commit diff
path: root/tests/ui/type-alias-impl-trait/issue-109054.stderr
blob: 5ce6f54e5f9ad7ca96b558a0f4b78f7238c85a58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error: item does not constrain `ReturnType::{opaque#0}`
  --> $DIR/issue-109054.rs:14:8
   |
LL |     fn deref(&self) -> &Self::Target {
   |        ^^^^^
   |
   = note: consider removing `#[define_opaque]` or adding an empty `#[define_opaque()]`
note: this opaque type is supposed to be constrained
  --> $DIR/issue-109054.rs:7:23
   |
LL | type ReturnType<'a> = impl std::future::Future<Output = u32> + 'a;
   |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 1 previous error