summaryrefslogtreecommitdiffstats
path: root/src/test/ui/type-alias-impl-trait/issue-52843-closure-constrain.stderr
blob: 4c5fd22556aaecf502ff7dfb08fd398f436b0612 (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/issue-52843-closure-constrain.rs:10:31
   |
LL |     let null = || -> Opaque { 0 };
   |                               ^ expected `String`, got `i32`
   |
note: previous use here
  --> $DIR/issue-52843-closure-constrain.rs:9:30
   |
LL |     fn _unused() -> Opaque { String::new() }
   |                              ^^^^^^^^^^^^^

error: aborting due to previous error