diff options
| author | Deadbeef <ent3rm4n@gmail.com> | 2023-07-27 15:51:02 +0000 |
|---|---|---|
| committer | Deadbeef <ent3rm4n@gmail.com> | 2023-07-27 15:51:02 +0000 |
| commit | 2d594512741ae8725a8e67e289365746511fa96d (patch) | |
| tree | 982861c4e9e03637c2a5c8c100f4ed37505b68b4 /tests/ui/rfcs/rfc-2632-const-trait-impl/super-traits-fail-2.yn.stderr | |
| parent | e6b423aebb7ef4b1f0b717243f435ac636aa79bc (diff) | |
| download | rust-2d594512741ae8725a8e67e289365746511fa96d.tar.gz rust-2d594512741ae8725a8e67e289365746511fa96d.zip | |
update tests, adding known-bug
Diffstat (limited to 'tests/ui/rfcs/rfc-2632-const-trait-impl/super-traits-fail-2.yn.stderr')
| -rw-r--r-- | tests/ui/rfcs/rfc-2632-const-trait-impl/super-traits-fail-2.yn.stderr | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/tests/ui/rfcs/rfc-2632-const-trait-impl/super-traits-fail-2.yn.stderr b/tests/ui/rfcs/rfc-2632-const-trait-impl/super-traits-fail-2.yn.stderr index c9fa1955498..5d34156a519 100644 --- a/tests/ui/rfcs/rfc-2632-const-trait-impl/super-traits-fail-2.yn.stderr +++ b/tests/ui/rfcs/rfc-2632-const-trait-impl/super-traits-fail-2.yn.stderr @@ -1,19 +1,11 @@ -error[E0277]: the trait bound `T: ~const Foo` is not satisfied +error[E0015]: cannot call non-const fn `<T as Foo>::a` in constant functions --> $DIR/super-traits-fail-2.rs:16:7 | LL | x.a(); - | ^ the trait `~const Foo` is not implemented for `T` + | ^^^ | -note: the trait `Foo` is implemented for `T`, but that implementation is not `const` - --> $DIR/super-traits-fail-2.rs:16:5 - | -LL | x.a(); - | ^ -help: consider further restricting this bound - | -LL | const fn foo<T: Bar + ~const Foo>(x: &T) { - | ++++++++++++ + = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants error: aborting due to previous error -For more information about this error, try `rustc --explain E0277`. +For more information about this error, try `rustc --explain E0015`. |
