Skip to content

Commit c7c7547

Browse files
committed
Update ui test suite to nightly-2024-01-31
1 parent 77d0af4 commit c7c7547

8 files changed

+8
-34
lines changed

tests/ui/source-enum-not-error.stderr

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ error[E0599]: the method `as_dyn_error` exists for reference `&NotError`, but it
22
--> tests/ui/source-enum-not-error.rs:9:14
33
|
44
4 | pub struct NotError;
5-
| -------------------
6-
| |
7-
| doesn't satisfy `NotError: AsDynError<'_>`
8-
| doesn't satisfy `NotError: std::error::Error`
5+
| ------------------- doesn't satisfy `NotError: AsDynError<'_>` or `NotError: std::error::Error`
96
...
107
9 | Broken { source: NotError },
118
| ^^^^^^ method cannot be called on `&NotError` due to unsatisfied trait bounds

tests/ui/source-enum-unnamed-field-not-error.stderr

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ error[E0599]: the method `as_dyn_error` exists for reference `&NotError`, but it
22
--> tests/ui/source-enum-unnamed-field-not-error.rs:9:14
33
|
44
4 | pub struct NotError;
5-
| -------------------
6-
| |
7-
| doesn't satisfy `NotError: AsDynError<'_>`
8-
| doesn't satisfy `NotError: std::error::Error`
5+
| ------------------- doesn't satisfy `NotError: AsDynError<'_>` or `NotError: std::error::Error`
96
...
107
9 | Broken(#[source] NotError),
118
| ^^^^^^ method cannot be called on `&NotError` due to unsatisfied trait bounds

tests/ui/source-struct-not-error.stderr

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@ error[E0599]: the method `as_dyn_error` exists for struct `NotError`, but its tr
22
--> tests/ui/source-struct-not-error.rs:9:5
33
|
44
4 | struct NotError;
5-
| ---------------
6-
| |
7-
| method `as_dyn_error` not found for this struct
8-
| doesn't satisfy `NotError: AsDynError<'_>`
9-
| doesn't satisfy `NotError: std::error::Error`
5+
| --------------- method `as_dyn_error` not found for this struct because it doesn't satisfy `NotError: AsDynError<'_>` or `NotError: std::error::Error`
106
...
117
9 | source: NotError,
128
| ^^^^^^ method cannot be called on `NotError` due to unsatisfied trait bounds

tests/ui/source-struct-unnamed-field-not-error.stderr

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@ error[E0599]: the method `as_dyn_error` exists for struct `NotError`, but its tr
22
--> tests/ui/source-struct-unnamed-field-not-error.rs:8:26
33
|
44
4 | struct NotError;
5-
| ---------------
6-
| |
7-
| method `as_dyn_error` not found for this struct
8-
| doesn't satisfy `NotError: AsDynError<'_>`
9-
| doesn't satisfy `NotError: std::error::Error`
5+
| --------------- method `as_dyn_error` not found for this struct because it doesn't satisfy `NotError: AsDynError<'_>` or `NotError: std::error::Error`
106
...
117
8 | pub struct ErrorStruct(#[source] NotError);
128
| ^^^^^^ method cannot be called on `NotError` due to unsatisfied trait bounds

tests/ui/transparent-enum-not-error.stderr

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ error[E0599]: the method `as_dyn_error` exists for reference `&String`, but its
77
::: $RUST/alloc/src/string.rs
88
|
99
| pub struct String {
10-
| -----------------
11-
| |
12-
| doesn't satisfy `String: AsDynError<'_>`
13-
| doesn't satisfy `String: std::error::Error`
10+
| ----------------- doesn't satisfy `String: AsDynError<'_>` or `String: std::error::Error`
1411
|
1512
= note: the following trait bounds were not satisfied:
1613
`String: std::error::Error`

tests/ui/transparent-enum-unnamed-field-not-error.stderr

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ error[E0599]: the method `as_dyn_error` exists for reference `&String`, but its
77
::: $RUST/alloc/src/string.rs
88
|
99
| pub struct String {
10-
| -----------------
11-
| |
12-
| doesn't satisfy `String: AsDynError<'_>`
13-
| doesn't satisfy `String: std::error::Error`
10+
| ----------------- doesn't satisfy `String: AsDynError<'_>` or `String: std::error::Error`
1411
|
1512
= note: the following trait bounds were not satisfied:
1613
`String: std::error::Error`

tests/ui/transparent-struct-not-error.stderr

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ error[E0599]: the method `as_dyn_error` exists for struct `String`, but its trai
77
::: $RUST/alloc/src/string.rs
88
|
99
| pub struct String {
10-
| -----------------
11-
| |
12-
| doesn't satisfy `String: AsDynError<'_>`
13-
| doesn't satisfy `String: std::error::Error`
10+
| ----------------- doesn't satisfy `String: AsDynError<'_>` or `String: std::error::Error`
1411
|
1512
= note: the following trait bounds were not satisfied:
1613
`String: std::error::Error`

tests/ui/transparent-struct-unnamed-field-not-error.stderr

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ error[E0599]: the method `as_dyn_error` exists for struct `String`, but its trai
77
::: $RUST/alloc/src/string.rs
88
|
99
| pub struct String {
10-
| -----------------
11-
| |
12-
| doesn't satisfy `String: AsDynError<'_>`
13-
| doesn't satisfy `String: std::error::Error`
10+
| ----------------- doesn't satisfy `String: AsDynError<'_>` or `String: std::error::Error`
1411
|
1512
= note: the following trait bounds were not satisfied:
1613
`String: std::error::Error`

0 commit comments

Comments
 (0)