summaryrefslogtreecommitdiffstats
path: root/tests/ui/type-alias-impl-trait/recursive-tait-conflicting-defn-2.stderr
blob: 7481557fcbade4c67c79905025ddf4a699218b86 (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/recursive-tait-conflicting-defn-2.rs:12:5
   |
LL |     transform::<Op>()
   |     ^^^^^^^^^^^^^^^^^ expected `&'static &'static str`, got `impl std::fmt::Display`
   |
note: previous use here
  --> $DIR/recursive-tait-conflicting-defn-2.rs:6:18
   |
LL | fn foo() -> Op { &"hello world" }
   |                  ^^^^^^^^^^^^^^

error: aborting due to previous error