summaryrefslogtreecommitdiffstats
path: root/tests/ui/associated-consts/assoc-const-ty-mismatch.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-19 09:26:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-19 09:26:03 +0000
commit9918693037dce8aa4bb6f08741b6812923486c18 (patch)
tree21d2b40bec7e6a7ea664acee056eb3d08e15a1cf /tests/ui/associated-consts/assoc-const-ty-mismatch.stderr
parentReleasing progress-linux version 1.75.0+dfsg1-5~progress7.99u1. (diff)
downloadrustc-9918693037dce8aa4bb6f08741b6812923486c18.tar.xz
rustc-9918693037dce8aa4bb6f08741b6812923486c18.zip
Merging upstream version 1.76.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/associated-consts/assoc-const-ty-mismatch.stderr')
-rw-r--r--tests/ui/associated-consts/assoc-const-ty-mismatch.stderr36
1 files changed, 20 insertions, 16 deletions
diff --git a/tests/ui/associated-consts/assoc-const-ty-mismatch.stderr b/tests/ui/associated-consts/assoc-const-ty-mismatch.stderr
index 11198729e..b844cfc4a 100644
--- a/tests/ui/associated-consts/assoc-const-ty-mismatch.stderr
+++ b/tests/ui/associated-consts/assoc-const-ty-mismatch.stderr
@@ -1,26 +1,30 @@
-error: expected associated constant bound, found type
- --> $DIR/assoc-const-ty-mismatch.rs:23:15
+error: expected constant, found type
+ --> $DIR/assoc-const-ty-mismatch.rs:23:19
|
-LL | fn foo<F: Foo<N=usize>>() {}
- | ^^^^^^^
+LL | fn foo<F: Foo<N = usize>>() {}
+ | - ^^^^^ unexpected type
+ | |
+ | expected a constant because of this associated constant
|
-note: associated constant defined here
- --> $DIR/assoc-const-ty-mismatch.rs:5:3
+note: the associated constant is defined here
+ --> $DIR/assoc-const-ty-mismatch.rs:5:5
|
-LL | const N: usize;
- | ^^^^^^^^^^^^^^
+LL | const N: usize;
+ | ^^^^^^^^^^^^^^
-error: expected associated type bound, found constant
- --> $DIR/assoc-const-ty-mismatch.rs:25:18
+error: expected type, found constant
+ --> $DIR/assoc-const-ty-mismatch.rs:25:22
|
-LL | fn foo2<F: FooTy<T=3usize>>() {}
- | ^^^^^^^^
+LL | fn foo2<F: FooTy<T = 3usize>>() {}
+ | - ^^^^^^ unexpected constant
+ | |
+ | expected a type because of this associated type
|
-note: associated type defined here
- --> $DIR/assoc-const-ty-mismatch.rs:9:3
+note: the associated type is defined here
+ --> $DIR/assoc-const-ty-mismatch.rs:9:5
|
-LL | type T;
- | ^^^^^^
+LL | type T;
+ | ^^^^^^
error: aborting due to 2 previous errors