]> git.proxmox.com Git - rustc.git/blame - src/test/ui/feature-gate-const_fn.stderr
New upstream version 1.26.0+dfsg1
[rustc.git] / src / test / ui / feature-gate-const_fn.stderr
CommitLineData
ff7c6d11
XL
1error[E0379]: trait fns cannot be declared const
2 --> $DIR/feature-gate-const_fn.rs:16:5
3 |
0531ce1d 4LL | const fn foo() -> u32; //~ ERROR const fn is unstable
ff7c6d11
XL
5 | ^^^^^ trait fns cannot be const
6
7error[E0379]: trait fns cannot be declared const
8 --> $DIR/feature-gate-const_fn.rs:18:5
9 |
0531ce1d 10LL | const fn bar() -> u32 { 0 } //~ ERROR const fn is unstable
ff7c6d11
XL
11 | ^^^^^ trait fns cannot be const
12
13error[E0379]: trait fns cannot be declared const
14 --> $DIR/feature-gate-const_fn.rs:27:5
15 |
0531ce1d 16LL | const fn foo() -> u32 { 0 } //~ ERROR const fn is unstable
ff7c6d11
XL
17 | ^^^^^ trait fns cannot be const
18
2c00a5a8 19error[E0658]: const fn is unstable (see issue #24111)
ff7c6d11
XL
20 --> $DIR/feature-gate-const_fn.rs:13:1
21 |
0531ce1d 22LL | const fn foo() -> usize { 0 } //~ ERROR const fn is unstable
ff7c6d11
XL
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24 |
25 = help: add #![feature(const_fn)] to the crate attributes to enable
26
2c00a5a8 27error[E0658]: const fn is unstable (see issue #24111)
ff7c6d11
XL
28 --> $DIR/feature-gate-const_fn.rs:16:5
29 |
0531ce1d 30LL | const fn foo() -> u32; //~ ERROR const fn is unstable
ff7c6d11
XL
31 | ^^^^^^^^^^^^^^^^^^^^^^
32 |
33 = help: add #![feature(const_fn)] to the crate attributes to enable
34
2c00a5a8 35error[E0658]: const fn is unstable (see issue #24111)
ff7c6d11
XL
36 --> $DIR/feature-gate-const_fn.rs:18:5
37 |
0531ce1d 38LL | const fn bar() -> u32 { 0 } //~ ERROR const fn is unstable
ff7c6d11
XL
39 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
40 |
41 = help: add #![feature(const_fn)] to the crate attributes to enable
42
2c00a5a8 43error[E0658]: const fn is unstable (see issue #24111)
ff7c6d11
XL
44 --> $DIR/feature-gate-const_fn.rs:23:5
45 |
0531ce1d 46LL | const fn baz() -> u32 { 0 } //~ ERROR const fn is unstable
ff7c6d11
XL
47 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
48 |
49 = help: add #![feature(const_fn)] to the crate attributes to enable
50
2c00a5a8 51error[E0658]: const fn is unstable (see issue #24111)
ff7c6d11
XL
52 --> $DIR/feature-gate-const_fn.rs:27:5
53 |
0531ce1d 54LL | const fn foo() -> u32 { 0 } //~ ERROR const fn is unstable
ff7c6d11
XL
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
56 |
57 = help: add #![feature(const_fn)] to the crate attributes to enable
58
59error: aborting due to 8 previous errors
60
0531ce1d
XL
61Some errors occurred: E0379, E0658.
62For more information about an error, try `rustc --explain E0379`.