fork/rust
git clone https://git.julia.blue/fork/rust
b8cedc00407
1.42.0
1error[E0658]: or-pattern is not allowed in a `const fn` 2 --> $DIR/feature-gate-const-fn.rs:4:15 3 | 4LL | const fn foo((Ok(a) | Err(a)): Result<i32, i32>) { 5 | ^^^^^^^^^^^^^^ 6 | 7 = note: for more information, see https://github.com/rust-lang/rust/issues/49146 8 = help: add `#![feature(const_if_match)]` to the crate attributes to enable 9 10error[E0658]: or-pattern is not allowed in a `const fn` 11 --> $DIR/feature-gate-const-fn.rs:7:9 12 | 13LL | let Ok(y) | Err(y) = x; 14 | ^^^^^^^^^^^^^^ 15 | 16 = note: for more information, see https://github.com/rust-lang/rust/issues/49146 17 = help: add `#![feature(const_if_match)]` to the crate attributes to enable 18 19error[E0658]: or-pattern is not allowed in a `const` 20 --> $DIR/feature-gate-const-fn.rs:13:9 21 | 22LL | let Ok(y) | Err(y) = x; 23 | ^^^^^^^^^^^^^^ 24 | 25 = note: for more information, see https://github.com/rust-lang/rust/issues/49146 26 = help: add `#![feature(const_if_match)]` to the crate attributes to enable 27 28error[E0658]: or-pattern is not allowed in a `static` 29 --> $DIR/feature-gate-const-fn.rs:19:9 30 | 31LL | let Ok(y) | Err(y) = x; 32 | ^^^^^^^^^^^^^^ 33 | 34 = note: for more information, see https://github.com/rust-lang/rust/issues/49146 35 = help: add `#![feature(const_if_match)]` to the crate attributes to enable 36 37error[E0658]: or-pattern is not allowed in a `static mut` 38 --> $DIR/feature-gate-const-fn.rs:25:9 39 | 40LL | let Ok(y) | Err(y) = x; 41 | ^^^^^^^^^^^^^^ 42 | 43 = note: for more information, see https://github.com/rust-lang/rust/issues/49146 44 = help: add `#![feature(const_if_match)]` to the crate attributes to enable 45 46error[E0658]: or-pattern is not allowed in a `const` 47 --> $DIR/feature-gate-const-fn.rs:32:13 48 | 49LL | let Ok(y) | Err(y) = x; 50 | ^^^^^^^^^^^^^^ 51 | 52 = note: for more information, see https://github.com/rust-lang/rust/issues/49146 53 = help: add `#![feature(const_if_match)]` to the crate attributes to enable 54 55error: aborting due to 6 previous errors 56 57For more information about this error, try `rustc --explain E0658`.