diff options
| author | Gary Guo <gary@garyguo.net> | 2024-04-19 16:17:02 +0100 |
|---|---|---|
| committer | Gary Guo <gary@garyguo.net> | 2024-04-24 13:12:25 +0100 |
| commit | 94c1920497d8281c1cd7b3d39b198bac80a03bc2 (patch) | |
| tree | 03798ceb84d231343f9f784a3bc28388948757b5 /tests/ui | |
| parent | e9362896e0eaaa86372b8ee2634b5761dd9e5ab7 (diff) | |
| download | rust-94c1920497d8281c1cd7b3d39b198bac80a03bc2.tar.gz rust-94c1920497d8281c1cd7b3d39b198bac80a03bc2.zip | |
Stabilise `inline_const`
Diffstat (limited to 'tests/ui')
| -rw-r--r-- | tests/ui/feature-gates/feature-gate-inline_const.rs | 6 | ||||
| -rw-r--r-- | tests/ui/feature-gates/feature-gate-inline_const.stderr | 13 |
2 files changed, 0 insertions, 19 deletions
diff --git a/tests/ui/feature-gates/feature-gate-inline_const.rs b/tests/ui/feature-gates/feature-gate-inline_const.rs deleted file mode 100644 index 43ff90d234c..00000000000 --- a/tests/ui/feature-gates/feature-gate-inline_const.rs +++ /dev/null @@ -1,6 +0,0 @@ -fn main() { - let _ = const { - //~^ ERROR inline-const is experimental [E0658] - true - }; -} diff --git a/tests/ui/feature-gates/feature-gate-inline_const.stderr b/tests/ui/feature-gates/feature-gate-inline_const.stderr deleted file mode 100644 index 6cf675065f3..00000000000 --- a/tests/ui/feature-gates/feature-gate-inline_const.stderr +++ /dev/null @@ -1,13 +0,0 @@ -error[E0658]: inline-const is experimental - --> $DIR/feature-gate-inline_const.rs:2:13 - | -LL | let _ = const { - | ^^^^^ - | - = note: see issue #76001 <https://github.com/rust-lang/rust/issues/76001> for more information - = help: add `#![feature(inline_const)]` to the crate attributes to enable - = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date - -error: aborting due to 1 previous error - -For more information about this error, try `rustc --explain E0658`. |
