]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/issue-104390.stderr
Rollup merge of #104076 - ozkanonur:fix-ci-rustc-sysroot, r=jyn514
[rust.git] / src / test / ui / consts / const-eval / issue-104390.stderr
1 error: expected at least one digit in exponent
2   --> $DIR/issue-104390.rs:1:27
3    |
4 LL | fn f1() -> impl Sized { & 2E }
5    |                           ^^
6
7 error: expected at least one digit in exponent
8   --> $DIR/issue-104390.rs:2:28
9    |
10 LL | fn f2() -> impl Sized { && 2E }
11    |                            ^^
12
13 error: expected at least one digit in exponent
14   --> $DIR/issue-104390.rs:3:29
15    |
16 LL | fn f3() -> impl Sized { &'a 2E }
17    |                             ^^
18
19 error: expected at least one digit in exponent
20   --> $DIR/issue-104390.rs:5:34
21    |
22 LL | fn f4() -> impl Sized { &'static 2E }
23    |                                  ^^
24
25 error: expected at least one digit in exponent
26   --> $DIR/issue-104390.rs:7:28
27    |
28 LL | fn f5() -> impl Sized { *& 2E }
29    |                            ^^
30
31 error: expected at least one digit in exponent
32   --> $DIR/issue-104390.rs:8:29
33    |
34 LL | fn f6() -> impl Sized { &'_ 2E }
35    |                             ^^
36
37 error: borrow expressions cannot be annotated with lifetimes
38   --> $DIR/issue-104390.rs:3:25
39    |
40 LL | fn f3() -> impl Sized { &'a 2E }
41    |                         ^--^^^
42    |                          |
43    |                          annotated with lifetime here
44    |                          help: remove the lifetime annotation
45
46 error: borrow expressions cannot be annotated with lifetimes
47   --> $DIR/issue-104390.rs:5:25
48    |
49 LL | fn f4() -> impl Sized { &'static 2E }
50    |                         ^-------^^^
51    |                          |
52    |                          annotated with lifetime here
53    |                          help: remove the lifetime annotation
54
55 error: borrow expressions cannot be annotated with lifetimes
56   --> $DIR/issue-104390.rs:8:25
57    |
58 LL | fn f6() -> impl Sized { &'_ 2E }
59    |                         ^--^^^
60    |                          |
61    |                          annotated with lifetime here
62    |                          help: remove the lifetime annotation
63
64 error: aborting due to 9 previous errors
65