1+ error[E0658]: wraparound pattern type ranges cause monomorphization time errors
2+ --> $DIR/assoc_const.rs:17:19
3+ |
4+ LL | fn foo<T: Foo>(_: pattern_type!(u32 is <T as Foo>::START..=<T as Foo>::END)) {}
5+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6+ |
7+ = note: see issue #136574 <https://github.com/rust-lang/rust/issues/136574> for more information
8+ = help: add `#![feature(generic_pattern_types)]` to the crate attributes to enable
9+ = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
10+
11+ error[E0658]: wraparound pattern type ranges cause monomorphization time errors
12+ --> $DIR/assoc_const.rs:17:19
13+ |
14+ LL | fn foo<T: Foo>(_: pattern_type!(u32 is <T as Foo>::START..=<T as Foo>::END)) {}
15+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16+ |
17+ = note: see issue #136574 <https://github.com/rust-lang/rust/issues/136574> for more information
18+ = help: add `#![feature(generic_pattern_types)]` to the crate attributes to enable
19+ = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
20+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
21+
122error: constant expression depends on a generic parameter
223 --> $DIR/assoc_const.rs:17:19
324 |
@@ -15,22 +36,44 @@ LL | fn foo<T: Foo>(_: pattern_type!(u32 is <T as Foo>::START..=<T as Foo>::END)
1536 = note: this may fail depending on what value the parameter takes
1637 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
1738
39+ error[E0658]: wraparound pattern type ranges cause monomorphization time errors
40+ --> $DIR/assoc_const.rs:22:19
41+ |
42+ LL | fn bar<T: Foo>(_: pattern_type!(u32 is T::START..=T::END)) {}
43+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44+ |
45+ = note: see issue #136574 <https://github.com/rust-lang/rust/issues/136574> for more information
46+ = help: add `#![feature(generic_pattern_types)]` to the crate attributes to enable
47+ = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
48+
49+ error[E0658]: wraparound pattern type ranges cause monomorphization time errors
50+ --> $DIR/assoc_const.rs:22:19
51+ |
52+ LL | fn bar<T: Foo>(_: pattern_type!(u32 is T::START..=T::END)) {}
53+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
54+ |
55+ = note: see issue #136574 <https://github.com/rust-lang/rust/issues/136574> for more information
56+ = help: add `#![feature(generic_pattern_types)]` to the crate attributes to enable
57+ = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
58+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
59+
1860error: constant expression depends on a generic parameter
19- --> $DIR/assoc_const.rs:20 :19
61+ --> $DIR/assoc_const.rs:22 :19
2062 |
2163LL | fn bar<T: Foo>(_: pattern_type!(u32 is T::START..=T::END)) {}
2264 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2365 |
2466 = note: this may fail depending on what value the parameter takes
2567
2668error: constant expression depends on a generic parameter
27- --> $DIR/assoc_const.rs:20 :19
69+ --> $DIR/assoc_const.rs:22 :19
2870 |
2971LL | fn bar<T: Foo>(_: pattern_type!(u32 is T::START..=T::END)) {}
3072 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3173 |
3274 = note: this may fail depending on what value the parameter takes
3375 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
3476
35- error: aborting due to 4 previous errors
77+ error: aborting due to 8 previous errors
3678
79+ For more information about this error, try `rustc --explain E0658`.
0 commit comments