about summary refs log tree commit diff
path: root/tests/ui/traits/next-solver/opaques/different-bound-vars.current.stderr
blob: 32e92e46a888b75be6db50f88b33ffff836c7cb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error: concrete type differs from previous defining opaque type use
  --> $DIR/different-bound-vars.rs:13:37
   |
LL |         let _: for<'b> fn(&'b ()) = foo::<U, T>(false);
   |                                     ^^^^^^^^^^^^^^^^^^ expected `for<'a> fn(&'a ())`, got `for<'b> fn(&'b ())`
   |
note: previous use here
  --> $DIR/different-bound-vars.rs:12:37
   |
LL |         let _: for<'a> fn(&'a ()) = foo::<T, U>(false);
   |                                     ^^^^^^^^^^^^^^^^^^

error: aborting due to 1 previous error