summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-48838.stderr
blob: 504ea3e80103aa7581c0073f598d5eadfb9a6b2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error[E0308]: mismatched types
  --> $DIR/issue-48838.rs:2:14
   |
LL |     Square = |x| x,
   |              ^^^^^ expected `isize`, found closure
   |
   = note: expected type `isize`
           found closure `{closure@$DIR/issue-48838.rs:2:14: 2:17}`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.