mirror of https://github.com/rust-lang/rust
15 lines
448 B
Plaintext
15 lines
448 B
Plaintext
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 1 previous error
|
|
|