]> git.proxmox.com Git - rustc.git/blame - tests/ui/const-generics/generic_arg_infer/issue-91614.stderr
New upstream version 1.76.0+dfsg1
[rustc.git] / tests / ui / const-generics / generic_arg_infer / issue-91614.stderr
CommitLineData
4b012472 1error[E0283]: type annotations needed for `Mask<_, N>`
923072b8 2 --> $DIR/issue-91614.rs:6:9
a2a8927a
XL
3 |
4LL | let y = Mask::<_, _>::splat(false);
064997fb 5 | ^ ------------------- type must be known at this point
a2a8927a
XL
6 |
7 = note: cannot satisfy `_: MaskElement`
9c376795 8 = help: the following types implement trait `MaskElement`:
fe692bf9
FG
9 isize
10 i8
9c376795
FG
11 i16
12 i32
13 i64
4b012472 14note: required by a bound in `Mask::<T, N>::splat`
a2a8927a 15 --> $SRC_DIR/core/src/../../portable-simd/crates/core_simd/src/masks.rs:LL:COL
923072b8
FG
16help: consider giving `y` an explicit type, where the type for type parameter `T` is specified
17 |
4b012472
FG
18LL | let y: Mask<_, N> = Mask::<_, _>::splat(false);
19 | ++++++++++++
a2a8927a 20
4b012472 21error: aborting due to 1 previous error
a2a8927a
XL
22
23For more information about this error, try `rustc --explain E0283`.