summary refs log tree commit diff
path: root/tests/ui/macros/ice-in-tokenstream-for-contracts-issue-140683.stderr
blob: f1ffda2a9bee69c0054586ee618fecb5b957d644 (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
32
33
34
error: expected `{`, found `)`
  --> $DIR/ice-in-tokenstream-for-contracts-issue-140683.rs:8:18
   |
LL |     fn b() {(loop)}
   |              ----^ expected `{`
   |              |
   |              while parsing this `loop` expression

error: expected `{`, found `)`
  --> $DIR/ice-in-tokenstream-for-contracts-issue-140683.rs:8:18
   |
LL |     fn b() {(loop)}
   |              ----^ expected `{`
   |              |
   |              while parsing this `loop` expression
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`

error[E0277]: expected a `Fn(&_)` closure, found `()`
  --> $DIR/ice-in-tokenstream-for-contracts-issue-140683.rs:7:5
   |
LL |     #[core::contracts::ensures]
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     expected an `Fn(&_)` closure, found `()`
   |     required by a bound introduced by this call
   |
   = help: the trait `for<'a> Fn(&'a _)` is not implemented for `()`
note: required by a bound in `build_check_ensures`
  --> $SRC_DIR/core/src/contracts.rs:LL:COL

error: aborting due to 3 previous errors

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