]> git.proxmox.com Git - rustc.git/blame - src/test/ui/const-generics/raw-ptr-const-param.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / const-generics / raw-ptr-const-param.stderr
CommitLineData
e74abb32
XL
1warning: the feature `const_generics` is incomplete and may cause the compiler to crash
2 --> $DIR/raw-ptr-const-param.rs:1:12
3 |
4LL | #![feature(const_generics, const_compare_raw_pointers)]
5 | ^^^^^^^^^^^^^^
6 |
7 = note: `#[warn(incomplete_features)]` on by default
8
9error[E0308]: mismatched types
10 --> $DIR/raw-ptr-const-param.rs:7:38
11 |
12LL | let _: Const<{15 as *const _}> = Const::<{10 as *const _}>;
60c5eb7d
XL
13 | ----------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `{pointer}`, found `{pointer}`
14 | |
15 | expected due to this
e74abb32 16 |
60c5eb7d
XL
17 = note: expected struct `Const<{pointer}>`
18 found struct `Const<{pointer}>`
e74abb32
XL
19
20error: aborting due to previous error
21
22For more information about this error, try `rustc --explain E0308`.