diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2024-08-22 00:55:09 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2024-10-04 23:38:41 +0000 |
| commit | d9f15faf3a7ceebca239f511d5f06ada5a87b281 (patch) | |
| tree | 94ef83b20ca781d0dfbb069eee449fedf7ff9b8c /tests/ui/const-generics | |
| parent | e740c7b6241f5396db081d34a33894fb8bcfbffe (diff) | |
| download | rust-d9f15faf3a7ceebca239f511d5f06ada5a87b281.tar.gz rust-d9f15faf3a7ceebca239f511d5f06ada5a87b281.zip | |
Bless ui tests.
Diffstat (limited to 'tests/ui/const-generics')
| -rw-r--r-- | tests/ui/const-generics/opaque_types.stderr | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/ui/const-generics/opaque_types.stderr b/tests/ui/const-generics/opaque_types.stderr index 847f1da16f6..a060488b328 100644 --- a/tests/ui/const-generics/opaque_types.stderr +++ b/tests/ui/const-generics/opaque_types.stderr @@ -1,3 +1,11 @@ +error: `Foo` is forbidden as the type of a const generic parameter + --> $DIR/opaque_types.rs:7:17 + | +LL | fn foo<const C: Foo>() {} + | ^^^ + | + = note: the only supported types are integers, `bool`, and `char` + error: item does not constrain `Foo::{opaque#0}`, but has it in its signature --> $DIR/opaque_types.rs:7:4 | @@ -68,14 +76,6 @@ LL | type Foo = impl Sized; | ^^^^^^^^^^ = note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information -error: `Foo` is forbidden as the type of a const generic parameter - --> $DIR/opaque_types.rs:7:17 - | -LL | fn foo<const C: Foo>() {} - | ^^^ - | - = note: the only supported types are integers, `bool`, and `char` - error[E0391]: cycle detected when computing type of opaque `Foo::{opaque#0}` --> $DIR/opaque_types.rs:3:12 | |
