about summary refs log tree commit diff
path: root/tests/ui/loop-match/suggest-const-item.stderr
blob: 787474479ad5af4a6699bdc1c435a705e6a4c190 (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
49
50
51
52
53
54
55
56
57
58
error: could not determine the target branch for this `#[const_continue]`
  --> $DIR/suggest-const-item.rs:19:32
   |
LL |                     break 'blk const_fn();
   |                                ^^^^^^^^^^ this value must be a literal or a monomorphic const
   |
   = help: try extracting the expression into a `const` item

error: could not determine the target branch for this `#[const_continue]`
  --> $DIR/suggest-const-item.rs:24:32
   |
LL |                     break 'blk const { const_fn() };
   |                                ^^^^^^^^^^^^^^^^^^^^ `const` blocks may use generics, and are not evaluated early enough
   |
   = help: try extracting the expression into a `const` item

error: could not determine the target branch for this `#[const_continue]`
  --> $DIR/suggest-const-item.rs:29:32
   |
LL |                     break 'blk N;
   |                                ^ constant parameters may use generics, and are not evaluated early enough
   |
   = help: try extracting the expression into a `const` item

error: could not determine the target branch for this `#[const_continue]`
  --> $DIR/suggest-const-item.rs:34:32
   |
LL |                     break 'blk 1 + 1;
   |                                ^^^^^ this value must be a literal or a monomorphic const
   |
   = help: try extracting the expression into a `const` item

error: could not determine the target branch for this `#[const_continue]`
  --> $DIR/suggest-const-item.rs:76:36
   |
LL |                         break 'blk Self::N;
   |                                    ^^^^^^^ this value is too generic

error: could not determine the target branch for this `#[const_continue]`
  --> $DIR/suggest-const-item.rs:119:36
   |
LL |                         break 'blk Self::L;
   |                                    ^^^^^^^ this value is too generic

error: could not determine the target branch for this `#[const_continue]`
  --> $DIR/suggest-const-item.rs:139:32
   |
LL |                     break 'blk SIZE_OF::<T>;
   |                                ^^^^^^^^^^^^ this value is too generic

error: could not determine the target branch for this `#[const_continue]`
  --> $DIR/suggest-const-item.rs:167:32
   |
LL |                     break 'blk <() as Trait<T>>::Y;
   |                                ^^^^^^^^^^^^^^^^^^^ this value is too generic

error: aborting due to 8 previous errors