Skip to content

Commit f0ae48d

Browse files
committed
add tests
1 parent d5a0c5c commit f0ae48d

8 files changed

+45
-33
lines changed

tests/crashes/133639.rs

-33
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
//@ check-pass
2+
3+
// Regression test for #133639.
4+
5+
#![feature(with_negative_coherence)]
6+
#![feature(min_specialization)]
7+
#![feature(generic_const_exprs)]
8+
//~^ WARNING the feature `generic_const_exprs` is incomplete
9+
10+
#![crate_type = "lib"]
11+
trait Trait {}
12+
struct A<const B: bool>;
13+
14+
trait C {}
15+
16+
impl<const D: u32> Trait for E<D> where A<{ D <= 2 }>: C {}
17+
struct E<const D: u32>;
18+
19+
impl<const D: u32> Trait for E<D> where A<{ D <= 2 }>: C {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes
2+
--> $DIR/specialization-fuzzing-ice-133639.rs:7:12
3+
|
4+
LL | #![feature(generic_const_exprs)]
5+
| ^^^^^^^^^^^^^^^^^^^
6+
|
7+
= note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information
8+
= note: `#[warn(incomplete_features)]` on by default
9+
10+
warning: 1 warning emitted
11+

tests/ui/const-generics/min_const_generics/param-env-eager-norm-dedup.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//@ revisions: current next
2+
//@ ignore-compare-mode-next-solver (explicit revisions)
3+
//@[next] compile-flags: -Znext-solver
14
//@ check-pass
25

36
// This caused a regression in a crater run in #132325.

tests/ui/traits/winnowing/global-non-global-env-1.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//@ revisions: current next
2+
//@ ignore-compare-mode-next-solver (explicit revisions)
3+
//@[next] compile-flags: -Znext-solver
14
//@ check-pass
25

36
// A regression test for an edge case of candidate selection

tests/ui/traits/winnowing/global-non-global-env-2.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//@ revisions: current next
2+
//@ ignore-compare-mode-next-solver (explicit revisions)
3+
//@[next] compile-flags: -Znext-solver
14
//@ check-pass
25

36
// A regression test for an edge case of candidate selection

tests/ui/traits/winnowing/global-non-global-env-3.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//@ revisions: current next
2+
//@ ignore-compare-mode-next-solver (explicit revisions)
3+
//@[next] compile-flags: -Znext-solver
14
//@ check-pass
25

36
// A regression test for an edge case of candidate selection

tests/ui/traits/winnowing/global-non-global-env-4.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//@ revisions: current next
2+
//@ ignore-compare-mode-next-solver (explicit revisions)
3+
//@[next] compile-flags: -Znext-solver
14
//@ check-pass
25

36
// A regression test for an edge case of candidate selection

0 commit comments

Comments
 (0)