aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/mismatched_types.stderr
blob: 643d1a1d13ea7680f1a4798570e40f6ea0aa7fbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
error[E0308]: mismatched types
  --> tests/ui/mismatched_types.rs:11:19
   |
10 | #[distributed_slice(BENCHMARKS)]
   | -------------------------------- arguments to this function are incorrect
11 | static BENCH_WTF: usize = 999;
   |                   ^^^^^ expected fn pointer, found `usize`
   |
   = note: expected fn pointer `for<'a> fn(&'a mut Bencher)`
                    found type `usize`
note: method defined here
  --> src/distributed_slice.rs
   |
   |     pub unsafe fn private_typecheck(self, element: T) {
   |                   ^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
  --> tests/ui/mismatched_types.rs:14:1
   |
13 | #[distributed_slice(BENCHMARKS)]
   | -------------------------------- arguments to this function are incorrect
14 | fn wrong_bench_fn<'a>(_: &'a mut ()) {}
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Bencher`, found `()`
   |
   = note: expected fn pointer `for<'a> fn(&'a mut Bencher)`
              found fn pointer `for<'a> fn(&'a mut ())`
note: method defined here
  --> src/distributed_slice.rs
   |
   |     pub unsafe fn private_typecheck(self, element: T) {
   |                   ^^^^^^^^^^^^^^^^^