diff options
| author | Deadbeef <ent3rm4n@gmail.com> | 2024-06-25 09:50:01 +0000 |
|---|---|---|
| committer | Deadbeef <ent3rm4n@gmail.com> | 2024-06-28 10:57:35 +0000 |
| commit | 373e906296059e3fea51323e07fcf5b0cea41d11 (patch) | |
| tree | 5531534911e964e4522d1d930789474b0508afcd /tests/ui/rfcs/rfc-2632-const-trait-impl/const-closure-trait-method-fail.stderr | |
| parent | f852a2c17373eda6994d83f75d8192ba4c2a653e (diff) | |
| download | rust-373e906296059e3fea51323e07fcf5b0cea41d11.tar.gz rust-373e906296059e3fea51323e07fcf5b0cea41d11.zip | |
bless UI tests
Diffstat (limited to 'tests/ui/rfcs/rfc-2632-const-trait-impl/const-closure-trait-method-fail.stderr')
| -rw-r--r-- | tests/ui/rfcs/rfc-2632-const-trait-impl/const-closure-trait-method-fail.stderr | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/ui/rfcs/rfc-2632-const-trait-impl/const-closure-trait-method-fail.stderr b/tests/ui/rfcs/rfc-2632-const-trait-impl/const-closure-trait-method-fail.stderr index fb2e66db1d4..507ceaae2ea 100644 --- a/tests/ui/rfcs/rfc-2632-const-trait-impl/const-closure-trait-method-fail.stderr +++ b/tests/ui/rfcs/rfc-2632-const-trait-impl/const-closure-trait-method-fail.stderr @@ -1,3 +1,12 @@ +error[E0049]: method `a` has 1 const parameter but its trait declaration has 0 const parameters + --> $DIR/const-closure-trait-method-fail.rs:5:1 + | +LL | #[const_trait] + | ^^^^^^^^^^^^^^ found 1 const parameter +LL | trait Tr { +LL | fn a(self) -> i32; + | - expected 0 const parameters + error: `~const` can only be applied to `#[const_trait]` traits --> $DIR/const-closure-trait-method-fail.rs:14:39 | @@ -20,6 +29,7 @@ help: add `#![feature(effects)]` to the crate attributes to enable LL + #![feature(effects)] | -error: aborting due to 2 previous errors +error: aborting due to 3 previous errors -For more information about this error, try `rustc --explain E0015`. +Some errors have detailed explanations: E0015, E0049. +For more information about an error, try `rustc --explain E0015`. |
