summaryrefslogtreecommitdiffstats
path: root/src/test/ui/associated-types/associated-types-path-2.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
commit64d98f8ee037282c35007b64c2649055c56af1db (patch)
tree5492bcf97fce41ee1c0b1cc2add283f3e66cdab0 /src/test/ui/associated-types/associated-types-path-2.stderr
parentAdding debian version 1.67.1+dfsg1-1. (diff)
downloadrustc-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/associated-types/associated-types-path-2.stderr')
-rw-r--r--src/test/ui/associated-types/associated-types-path-2.stderr97
1 files changed, 0 insertions, 97 deletions
diff --git a/src/test/ui/associated-types/associated-types-path-2.stderr b/src/test/ui/associated-types/associated-types-path-2.stderr
deleted file mode 100644
index 206f49024..000000000
--- a/src/test/ui/associated-types/associated-types-path-2.stderr
+++ /dev/null
@@ -1,97 +0,0 @@
-error[E0308]: mismatched types
- --> $DIR/associated-types-path-2.rs:19:14
- |
-LL | f1(2i32, 4i32);
- | -- ^^^^ expected `u32`, found `i32`
- | |
- | arguments to this function are incorrect
- |
-note: function defined here
- --> $DIR/associated-types-path-2.rs:13:8
- |
-LL | pub fn f1<T: Foo>(a: T, x: T::A) {}
- | ^^ -------
-help: change the type of the numeric literal from `i32` to `u32`
- |
-LL | f1(2i32, 4u32);
- | ~~~
-
-error[E0277]: the trait bound `u32: Foo` is not satisfied
- --> $DIR/associated-types-path-2.rs:29:8
- |
-LL | f1(2u32, 4u32);
- | -- ^^^^ the trait `Foo` is not implemented for `u32`
- | |
- | required by a bound introduced by this call
- |
- = help: the trait `Foo` is implemented for `i32`
-note: required by a bound in `f1`
- --> $DIR/associated-types-path-2.rs:13:14
- |
-LL | pub fn f1<T: Foo>(a: T, x: T::A) {}
- | ^^^ required by this bound in `f1`
-
-error[E0277]: the trait bound `u32: Foo` is not satisfied
- --> $DIR/associated-types-path-2.rs:29:5
- |
-LL | f1(2u32, 4u32);
- | ^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `u32`
- |
- = help: the trait `Foo` is implemented for `i32`
-
-error[E0277]: the trait bound `u32: Foo` is not satisfied
- --> $DIR/associated-types-path-2.rs:29:14
- |
-LL | f1(2u32, 4u32);
- | ^^^^ the trait `Foo` is not implemented for `u32`
- |
- = help: the trait `Foo` is implemented for `i32`
-
-error[E0277]: the trait bound `u32: Foo` is not satisfied
- --> $DIR/associated-types-path-2.rs:36:8
- |
-LL | f1(2u32, 4i32);
- | -- ^^^^ the trait `Foo` is not implemented for `u32`
- | |
- | required by a bound introduced by this call
- |
- = help: the trait `Foo` is implemented for `i32`
-note: required by a bound in `f1`
- --> $DIR/associated-types-path-2.rs:13:14
- |
-LL | pub fn f1<T: Foo>(a: T, x: T::A) {}
- | ^^^ required by this bound in `f1`
-
-error[E0277]: the trait bound `u32: Foo` is not satisfied
- --> $DIR/associated-types-path-2.rs:36:5
- |
-LL | f1(2u32, 4i32);
- | ^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `u32`
- |
- = help: the trait `Foo` is implemented for `i32`
-
-error[E0277]: the trait bound `u32: Foo` is not satisfied
- --> $DIR/associated-types-path-2.rs:36:14
- |
-LL | f1(2u32, 4i32);
- | ^^^^ the trait `Foo` is not implemented for `u32`
- |
- = help: the trait `Foo` is implemented for `i32`
-
-error[E0308]: mismatched types
- --> $DIR/associated-types-path-2.rs:43:18
- |
-LL | let _: i32 = f2(2i32);
- | --- ^^^^^^^^ expected `i32`, found `u32`
- | |
- | expected due to this
- |
-help: you can convert a `u32` to an `i32` and panic if the converted value doesn't fit
- |
-LL | let _: i32 = f2(2i32).try_into().unwrap();
- | ++++++++++++++++++++
-
-error: aborting due to 8 previous errors
-
-Some errors have detailed explanations: E0277, E0308.
-For more information about an error, try `rustc --explain E0277`.