Skip to content

Commit 3a7f1ed

Browse files
authored
Rollup merge of #68760 - Tyg13:compile_fail_ui_test, r=Centril
Issue error on `compile-fail` header in UI test Fixes #68732 r? @Centril
2 parents f2cc0cc + f6c3894 commit 3a7f1ed

38 files changed

+168
-194
lines changed

src/test/ui/associated-type-bounds/bad-bounds-on-assoc-in-trait.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// compile-fail
21
// ignore-tidy-linelength
32

43
// NOTE: rustc cannot currently handle bounds of the form `for<'a> <Foo as Bar<'a>>::Assoc: Baz`.

src/test/ui/associated-type-bounds/bad-bounds-on-assoc-in-trait.stderr

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
error[E0277]: `<L1 as Lam<&'a u8>>::App` doesn't implement `std::fmt::Debug`
2-
--> $DIR/bad-bounds-on-assoc-in-trait.rs:32:6
2+
--> $DIR/bad-bounds-on-assoc-in-trait.rs:31:6
33
|
44
LL | impl Case1 for S1 {
55
| ^^^^^ `<L1 as Lam<&'a u8>>::App` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
66
|
77
= help: the trait `for<'a> std::fmt::Debug` is not implemented for `<L1 as Lam<&'a u8>>::App`
88

99
error[E0277]: `<<T as Case1>::C as std::iter::Iterator>::Item` is not an iterator
10-
--> $DIR/bad-bounds-on-assoc-in-trait.rs:37:1
10+
--> $DIR/bad-bounds-on-assoc-in-trait.rs:36:1
1111
|
1212
LL | fn assume_case1<T: Case1>() {
1313
| ^ - help: consider further restricting the associated type: `where <<T as Case1>::C as std::iter::Iterator>::Item: std::iter::Iterator`
@@ -24,7 +24,7 @@ LL | | }
2424
= help: the trait `std::iter::Iterator` is not implemented for `<<T as Case1>::C as std::iter::Iterator>::Item`
2525

2626
error[E0277]: `<<T as Case1>::C as std::iter::Iterator>::Item` cannot be sent between threads safely
27-
--> $DIR/bad-bounds-on-assoc-in-trait.rs:37:1
27+
--> $DIR/bad-bounds-on-assoc-in-trait.rs:36:1
2828
|
2929
LL | trait Case1 {
3030
| ----------- required by `Case1`
@@ -44,7 +44,7 @@ LL | | }
4444
= help: the trait `std::marker::Send` is not implemented for `<<T as Case1>::C as std::iter::Iterator>::Item`
4545

4646
error[E0277]: `<<T as Case1>::C as std::iter::Iterator>::Item` cannot be shared between threads safely
47-
--> $DIR/bad-bounds-on-assoc-in-trait.rs:37:1
47+
--> $DIR/bad-bounds-on-assoc-in-trait.rs:36:1
4848
|
4949
LL | trait Case1 {
5050
| ----------- required by `Case1`
@@ -64,7 +64,7 @@ LL | | }
6464
= help: the trait `std::marker::Sync` is not implemented for `<<T as Case1>::C as std::iter::Iterator>::Item`
6565

6666
error[E0277]: `<_ as Lam<&'a u8>>::App` doesn't implement `std::fmt::Debug`
67-
--> $DIR/bad-bounds-on-assoc-in-trait.rs:37:1
67+
--> $DIR/bad-bounds-on-assoc-in-trait.rs:36:1
6868
|
6969
LL | trait Case1 {
7070
| ----------- required by `Case1`

src/test/ui/associated-type-bounds/duplicate.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// compile-fail
21
// ignore-tidy-linelength
32

43
#![feature(associated_type_bounds)]

0 commit comments

Comments
 (0)