mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-01 05:25:38 +00:00
17 lines
549 B
Plaintext
17 lines
549 B
Plaintext
error[E0308]: mismatched types
|
|
--> $DIR/name-mentioning-macro.rs:8:9
|
|
|
|
|
LL | fn foo(x: impl Foo<bar!()>) {
|
|
| ---------------- expected this type parameter
|
|
LL | let () = x;
|
|
| ^^ - this expression has type `impl Foo<bar!()>`
|
|
| |
|
|
| expected type parameter `impl Foo<bar!()>`, found `()`
|
|
|
|
|
= note: expected type parameter `impl Foo<bar!()>`
|
|
found unit type `()`
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|