]> git.lizzy.rs Git - rust.git/blob - tests/ui/crashes/ice-6252.stderr
Auto merge of #6298 - JohnTitor:fix-example, r=llogiq
[rust.git] / tests / ui / crashes / ice-6252.stderr
1 error[E0412]: cannot find type `PhantomData` in this scope
2   --> $DIR/ice-6252.rs:9:9
3    |
4 LL |     _n: PhantomData,
5    |         ^^^^^^^^^^^ not found in this scope
6    |
7 help: consider importing this struct
8    |
9 LL | use std::marker::PhantomData;
10    |
11
12 error[E0412]: cannot find type `VAL` in this scope
13   --> $DIR/ice-6252.rs:11:63
14    |
15 LL | impl<N, M> TypeVal<usize> for Multiply<N, M> where N: TypeVal<VAL> {}
16    |          -                                                    ^^^ not found in this scope
17    |          |
18    |          help: you might be missing a type parameter: `, VAL`
19
20 error[E0046]: not all trait items implemented, missing: `VAL`
21   --> $DIR/ice-6252.rs:11:1
22    |
23 LL |     const VAL: T;
24    |     ------------- `VAL` from trait
25 ...
26 LL | impl<N, M> TypeVal<usize> for Multiply<N, M> where N: TypeVal<VAL> {}
27    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `VAL` in implementation
28
29 error: any use of this value will cause an error
30   --> $DIR/ice-6252.rs:5:5
31    |
32 LL |     const VAL: T;
33    |     ^^^^^^^^^^^^^ no MIR body is available for DefId(0:5 ~ ice_6252[317d]::TypeVal::VAL)
34    |
35    = note: `#[deny(const_err)]` on by default
36
37 error[E0080]: evaluation of constant value failed
38   --> $DIR/ice-6252.rs:14:9
39    |
40 LL |     [1; <Multiply<Five, Five>>::VAL];
41    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^ referenced constant has errors
42
43 error: aborting due to 5 previous errors
44
45 Some errors have detailed explanations: E0046, E0080, E0412.
46 For more information about an error, try `rustc --explain E0046`.