Skip to content

Commit 86f1aff

Browse files
committed
Move higher-ranked-trait-bounds tests into higher-ranked subdir
1 parent 863caf8 commit 86f1aff

3 files changed

Lines changed: 4 additions & 10 deletions

File tree

tests/ui/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -687,10 +687,6 @@ See:
687687
- [Higher-ranked trait bounds | rustc-dev-guide](https://rustc-dev-guide.rust-lang.org/traits/hrtb.html)
688688
- [Higher-ranked trait bounds | Nomicon](https://doc.rust-lang.org/nomicon/hrtb.html)
689689

690-
## `tests/ui/higher-ranked-trait-bounds`
691-
692-
**FIXME**: move to `tests/ui/higher-ranked/trait-bounds`
693-
694690
## `tests/ui/hygiene/`
695691

696692
This seems to have been originally intended for "hygienic macros" - macros which work in all contexts, independent of what surrounds them. However, this category has grown into a mish-mash of many tests that may belong in the other directories.

tests/ui/higher-ranked-trait-bounds/higher-trait-bounds-ice-60218.rs renamed to tests/ui/higher-ranked/trait-bounds/higher-trait-bounds-ice-60218.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
// https://github.com/rust-lang/rust/issues/60218
2-
// Regression test for #60218
3-
//
1+
// Regression test for https://github.com/rust-lang/rust/issues/60218
42
// This was reported to cause ICEs.
53

64
use std::iter::Map;

tests/ui/higher-ranked-trait-bounds/higher-trait-bounds-ice-60218.stderr renamed to tests/ui/higher-ranked/trait-bounds/higher-trait-bounds-ice-60218.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
error[E0277]: the trait bound `&u32: Foo` is not satisfied
2-
--> $DIR/higher-trait-bounds-ice-60218.rs:19:19
2+
--> $DIR/higher-trait-bounds-ice-60218.rs:17:19
33
|
44
LL | trigger_error(vec![], |x: &u32| x)
55
| ------------- ^^^^^^ the trait `Foo` is not implemented for `&u32`
66
| |
77
| required by a bound introduced by this call
88
|
99
help: this trait has no implementations, consider adding one
10-
--> $DIR/higher-trait-bounds-ice-60218.rs:8:1
10+
--> $DIR/higher-trait-bounds-ice-60218.rs:6:1
1111
|
1212
LL | pub trait Foo {}
1313
| ^^^^^^^^^^^^^
1414
note: required by a bound in `trigger_error`
15-
--> $DIR/higher-trait-bounds-ice-60218.rs:14:72
15+
--> $DIR/higher-trait-bounds-ice-60218.rs:12:72
1616
|
1717
LL | pub fn trigger_error<I, F>(iterable: I, functor: F)
1818
| ------------- required by a bound in this function

0 commit comments

Comments
 (0)