Skip to content

Commit 64d1542

Browse files
Update some UI tests
1 parent 190dc87 commit 64d1542

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

tests/ui/issues/auxiliary/issue-14421.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
#![deny(warnings)]
33
#![allow(dead_code)]
44

5-
pub use src::aliases::B;
5+
pub use src::aliases::{A, B};
66
pub use src::hidden_core::make;
77

88
mod src {
99
pub mod aliases {
10-
use super::hidden_core::A;
10+
pub use super::hidden_core::A;
1111
pub type B = A<f32>;
1212
}
1313

tests/ui/issues/auxiliary/issue-14422.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#![crate_type="lib"]
22
#![deny(warnings)]
33

4-
pub use src::aliases::B;
4+
pub use src::aliases::{A, B};
55
pub use src::hidden_core::make;
66

77
mod src {
88
pub mod aliases {
9-
use super::hidden_core::A;
9+
pub use super::hidden_core::A;
1010
pub type B = A;
1111
}
1212

tests/ui/suggestions/bound-suggestions.stderr

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,68 @@
1-
error[E0277]: `impl Sized` doesn't implement `Debug`
1+
error[E0277]: `impl Sized` doesn't implement `std::fmt::Debug`
22
--> $DIR/bound-suggestions.rs:9:22
33
|
44
LL | println!("{:?}", t);
5-
| ^ `impl Sized` cannot be formatted using `{:?}` because it doesn't implement `Debug`
5+
| ^ `impl Sized` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
66
|
77
= note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
88
help: consider further restricting this bound
99
|
1010
LL | fn test_impl(t: impl Sized + std::fmt::Debug) {
1111
| +++++++++++++++++
1212

13-
error[E0277]: `T` doesn't implement `Debug`
13+
error[E0277]: `T` doesn't implement `std::fmt::Debug`
1414
--> $DIR/bound-suggestions.rs:15:22
1515
|
1616
LL | println!("{:?}", t);
17-
| ^ `T` cannot be formatted using `{:?}` because it doesn't implement `Debug`
17+
| ^ `T` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
1818
|
1919
= note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
2020
help: consider restricting type parameter `T`
2121
|
2222
LL | fn test_no_bounds<T: std::fmt::Debug>(t: T) {
2323
| +++++++++++++++++
2424

25-
error[E0277]: `T` doesn't implement `Debug`
25+
error[E0277]: `T` doesn't implement `std::fmt::Debug`
2626
--> $DIR/bound-suggestions.rs:21:22
2727
|
2828
LL | println!("{:?}", t);
29-
| ^ `T` cannot be formatted using `{:?}` because it doesn't implement `Debug`
29+
| ^ `T` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
3030
|
3131
= note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
3232
help: consider further restricting this bound
3333
|
3434
LL | fn test_one_bound<T: Sized + std::fmt::Debug>(t: T) {
3535
| +++++++++++++++++
3636

37-
error[E0277]: `Y` doesn't implement `Debug`
37+
error[E0277]: `Y` doesn't implement `std::fmt::Debug`
3838
--> $DIR/bound-suggestions.rs:27:30
3939
|
4040
LL | println!("{:?} {:?}", x, y);
41-
| ^ `Y` cannot be formatted using `{:?}` because it doesn't implement `Debug`
41+
| ^ `Y` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
4242
|
4343
= note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
4444
help: consider further restricting type parameter `Y`
4545
|
4646
LL | fn test_no_bounds_where<X, Y>(x: X, y: Y) where X: std::fmt::Debug, Y: std::fmt::Debug {
4747
| ~~~~~~~~~~~~~~~~~~~~
4848

49-
error[E0277]: `X` doesn't implement `Debug`
49+
error[E0277]: `X` doesn't implement `std::fmt::Debug`
5050
--> $DIR/bound-suggestions.rs:33:22
5151
|
5252
LL | println!("{:?}", x);
53-
| ^ `X` cannot be formatted using `{:?}` because it doesn't implement `Debug`
53+
| ^ `X` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
5454
|
5555
= note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
5656
help: consider further restricting this bound
5757
|
5858
LL | fn test_one_bound_where<X>(x: X) where X: Sized + std::fmt::Debug {
5959
| +++++++++++++++++
6060

61-
error[E0277]: `X` doesn't implement `Debug`
61+
error[E0277]: `X` doesn't implement `std::fmt::Debug`
6262
--> $DIR/bound-suggestions.rs:39:22
6363
|
6464
LL | println!("{:?}", x);
65-
| ^ `X` cannot be formatted using `{:?}` because it doesn't implement `Debug`
65+
| ^ `X` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
6666
|
6767
= note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
6868
help: consider further restricting this bound

0 commit comments

Comments
 (0)