about summary refs log tree commit diff
path: root/tests/ui/impl-trait/name-mentioning-macro.stderr
blob: adb4c64f812f135ad3145afc41a85878b83512ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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`.