]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/raw-ptr-const-param.stderr
Rollup merge of #70038 - DutchGhost:const-forget-tests, r=RalfJung
[rust.git] / src / test / ui / const-generics / raw-ptr-const-param.stderr
1 warning: the feature `const_generics` is incomplete and may cause the compiler to crash
2   --> $DIR/raw-ptr-const-param.rs:1:12
3    |
4 LL | #![feature(const_generics, const_compare_raw_pointers)]
5    |            ^^^^^^^^^^^^^^
6    |
7    = note: `#[warn(incomplete_features)]` on by default
8
9 error[E0308]: mismatched types
10   --> $DIR/raw-ptr-const-param.rs:7:40
11    |
12 LL |     let _: Const<{ 15 as *const _ }> = Const::<{ 10 as *const _ }>;
13    |            -------------------------   ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `{0xf as *const u32}`, found `{0xa as *const u32}`
14    |            |
15    |            expected due to this
16    |
17    = note: expected struct `Const<{0xf as *const u32}>`
18               found struct `Const<{0xa as *const u32}>`
19
20 error: aborting due to previous error
21
22 For more information about this error, try `rustc --explain E0308`.