diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:03 +0000 |
commit | 64d98f8ee037282c35007b64c2649055c56af1db (patch) | |
tree | 5492bcf97fce41ee1c0b1cc2add283f3e66cdab0 /src/test/ui/consts/rustc-const-stability-require-const.stderr | |
parent | Adding debian version 1.67.1+dfsg1-1. (diff) | |
download | rustc-64d98f8ee037282c35007b64c2649055c56af1db.tar.xz rustc-64d98f8ee037282c35007b64c2649055c56af1db.zip |
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/consts/rustc-const-stability-require-const.stderr')
-rw-r--r-- | src/test/ui/consts/rustc-const-stability-require-const.stderr | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/src/test/ui/consts/rustc-const-stability-require-const.stderr b/src/test/ui/consts/rustc-const-stability-require-const.stderr deleted file mode 100644 index 1027b9311..000000000 --- a/src/test/ui/consts/rustc-const-stability-require-const.stderr +++ /dev/null @@ -1,86 +0,0 @@ -error: attributes `#[rustc_const_unstable]` and `#[rustc_const_stable]` require the function or method to be `const` - --> $DIR/rustc-const-stability-require-const.rs:7:1 - | -LL | #[rustc_const_unstable(feature = "const_foo", issue = "none")] - | -------------------------------------------------------------- attribute specified here -LL | pub fn foo() {} - | ^^^^^^^^^^^^ - | -help: make the function or method const - --> $DIR/rustc-const-stability-require-const.rs:7:1 - | -LL | pub fn foo() {} - | ^^^^^^^^^^^^ - -error: attributes `#[rustc_const_unstable]` and `#[rustc_const_stable]` require the function or method to be `const` - --> $DIR/rustc-const-stability-require-const.rs:12:1 - | -LL | #[rustc_const_stable(feature = "const_bar", since = "1.0.0")] - | ------------------------------------------------------------- attribute specified here -LL | pub fn bar() {} - | ^^^^^^^^^^^^ - | -help: make the function or method const - --> $DIR/rustc-const-stability-require-const.rs:12:1 - | -LL | pub fn bar() {} - | ^^^^^^^^^^^^ - -error: attributes `#[rustc_const_unstable]` and `#[rustc_const_stable]` require the function or method to be `const` - --> $DIR/rustc-const-stability-require-const.rs:21:5 - | -LL | #[rustc_const_unstable(feature = "const_salad", issue = "none")] - | ---------------------------------------------------------------- attribute specified here -LL | pub fn salad(&self) -> &'static str { "mmmmmm" } - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | -help: make the function or method const - --> $DIR/rustc-const-stability-require-const.rs:21:5 - | -LL | pub fn salad(&self) -> &'static str { "mmmmmm" } - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: attributes `#[rustc_const_unstable]` and `#[rustc_const_stable]` require the function or method to be `const` - --> $DIR/rustc-const-stability-require-const.rs:26:5 - | -LL | #[rustc_const_unstable(feature = "const_roasted", issue = "none")] - | ------------------------------------------------------------------ attribute specified here -LL | pub fn roasted(&self) -> &'static str { "mmmmmmmmmm" } - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | -help: make the function or method const - --> $DIR/rustc-const-stability-require-const.rs:26:5 - | -LL | pub fn roasted(&self) -> &'static str { "mmmmmmmmmm" } - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: attributes `#[rustc_const_unstable]` and `#[rustc_const_stable]` require the function or method to be `const` - --> $DIR/rustc-const-stability-require-const.rs:32:1 - | -LL | #[rustc_const_stable(feature = "const_bar", since = "1.0.0")] - | ------------------------------------------------------------- attribute specified here -LL | pub extern "C" fn bar_c() {} - | ^^^^^^^^^^^^^^^^^^^^^^^^^ - | -help: make the function or method const - --> $DIR/rustc-const-stability-require-const.rs:32:1 - | -LL | pub extern "C" fn bar_c() {} - | ^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: attributes `#[rustc_const_unstable]` and `#[rustc_const_stable]` require the function or method to be `const` - --> $DIR/rustc-const-stability-require-const.rs:37:1 - | -LL | #[rustc_const_unstable(feature = "const_foo", issue = "none")] - | -------------------------------------------------------------- attribute specified here -LL | pub extern "C" fn foo_c() {} - | ^^^^^^^^^^^^^^^^^^^^^^^^^ - | -help: make the function or method const - --> $DIR/rustc-const-stability-require-const.rs:37:1 - | -LL | pub extern "C" fn foo_c() {} - | ^^^^^^^^^^^^^^^^^^^^^^^^^ - -error: aborting due to 6 previous errors - |