Skip to content

Commit fcbcdd4

Browse files
committed
fix ice-6252
1 parent bacb3e3 commit fcbcdd4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/tools/clippy/tests/ui/crashes/ice-6252.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// originally from glacier fixed/77919.rs
22
// encountered errors resolving bounds after type-checking
33
//@no-rustfix
4+
#![no_implicit_prelude]
45
trait TypeVal<T> {
56
const VAL: T;
67
}

src/tools/clippy/tests/ui/crashes/ice-6252.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0412]: cannot find type `PhantomData` in this scope
2-
--> tests/ui/crashes/ice-6252.rs:9:9
2+
--> tests/ui/crashes/ice-6252.rs:10:9
33
|
44
LL | _n: PhantomData,
55
| ^^^^^^^^^^^ not found in this scope
@@ -12,7 +12,7 @@ LL + use std::marker::PhantomData;
1212
|
1313

1414
error[E0412]: cannot find type `VAL` in this scope
15-
--> tests/ui/crashes/ice-6252.rs:11:63
15+
--> tests/ui/crashes/ice-6252.rs:12:63
1616
|
1717
LL | impl<N, M> TypeVal<usize> for Multiply<N, M> where N: TypeVal<VAL> {}
1818
| ^^^ not found in this scope
@@ -23,7 +23,7 @@ LL | impl<N, M, VAL> TypeVal<usize> for Multiply<N, M> where N: TypeVal<VAL> {}
2323
| +++++
2424

2525
error[E0046]: not all trait items implemented, missing: `VAL`
26-
--> tests/ui/crashes/ice-6252.rs:11:1
26+
--> tests/ui/crashes/ice-6252.rs:12:1
2727
|
2828
LL | const VAL: T;
2929
| ------------ `VAL` from trait

0 commit comments

Comments
 (0)