summaryrefslogtreecommitdiffstats
path: root/tests/ui/type-alias-impl-trait/hidden_type_mismatch.stderr
blob: 85e8a600ce37f4635ec21a23142d52725c30ae28 (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/hidden_type_mismatch.rs:11:20
   |
LL |     pub type Sep = impl Sized + std::fmt::Display;
   |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `i32`, got `String`
   |
note: previous use here
  --> $DIR/hidden_type_mismatch.rs:37:21
   |
LL |     pub type Tait = impl Copy + From<Bar<()>> + Into<Bar<()>>;
   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error