summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/new-solver/alias-bound-unsound.stderr
blob: 5800e2c43406484359924e13235fba47bd7ffefc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error: the type `&<() as Foo>::Item` is not well-formed
  --> $DIR/alias-bound-unsound.rs:23:31
   |
LL |     drop(<() as Foo>::copy_me(&x));
   |                               ^^

error: the type `<() as Foo>::Item` is not well-formed
  --> $DIR/alias-bound-unsound.rs:23:10
   |
LL |     drop(<() as Foo>::copy_me(&x));
   |          ^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 2 previous errors