about summary refs log tree commit diff
path: root/tests/ui/pattern/rfc-3637-guard-patterns/only-resolve-top-level-guard-expr-once-ice-141265.stderr
blob: dae384137f529f5e602218de98af343f945d145e (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
error: expected identifier, found keyword `else`
  --> $DIR/only-resolve-top-level-guard-expr-once-ice-141265.rs:6:5
   |
LL |     else if b 0 {}
   |     ^^^^ expected identifier, found keyword

error: missing `in` in `for` loop
  --> $DIR/only-resolve-top-level-guard-expr-once-ice-141265.rs:6:14
   |
LL |     else if b 0 {}
   |              ^
   |
help: try adding `in` here
   |
LL |     else if b in 0 {}
   |               ++

error[E0425]: cannot find value `b` in this scope
  --> $DIR/only-resolve-top-level-guard-expr-once-ice-141265.rs:6:13
   |
LL |     else if b 0 {}
   |             ^ not found in this scope

error[E0658]: guard patterns are experimental
  --> $DIR/only-resolve-top-level-guard-expr-once-ice-141265.rs:6:13
   |
LL |     else if b 0 {}
   |             ^
   |
   = note: see issue #129967 <https://github.com/rust-lang/rust/issues/129967> for more information
   = help: add `#![feature(guard_patterns)]` to the crate attributes to enable
   = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
   = help: consider using match arm guards

error[E0277]: `{integer}` is not an iterator
  --> $DIR/only-resolve-top-level-guard-expr-once-ice-141265.rs:6:15
   |
LL |     else if b 0 {}
   |               ^ `{integer}` is not an iterator
   |
   = help: the trait `Iterator` is not implemented for `{integer}`
   = note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end`
   = note: required for `{integer}` to implement `IntoIterator`

error: aborting due to 5 previous errors

Some errors have detailed explanations: E0277, E0425, E0658.
For more information about an error, try `rustc --explain E0277`.