Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

ices/91614.rs: fixed with errors #1055

Merged
merged 1 commit into from
Dec 14, 2021
Merged

ices/91614.rs: fixed with errors #1055

merged 1 commit into from
Dec 14, 2021

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#91614

#![feature(portable_simd)]
#![feature(generic_arg_infer)]
use std::simd::{Mask};

fn main() {
    let y = Mask::<_, _>::splat(false);
}
=== stdout ===
=== stderr ===
error[E0283]: type annotations needed for `Mask<_, {_: usize}>`
   --> /home/runner/work/glacier/glacier/ices/91614.rs:6:13
    |
6   |     let y = Mask::<_, _>::splat(false);
    |         -   ^^^^^^^^^^^^^^^^^^^ cannot infer type for type parameter `T`
    |         |
    |         consider giving `y` the explicit type `Mask<_, LANES>`, where the type parameter `T` is specified
    |
    = note: cannot satisfy `_: MaskElement`
note: required by a bound in `Mask::<T, LANES>::splat`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0283`.
==============

=== stdout ===
=== stderr ===
error[E0283]: type annotations needed for `Mask<_, {_: usize}>`
   --> /home/runner/work/glacier/glacier/ices/91614.rs:6:13
    |
6   |     let y = Mask::<_, _>::splat(false);
    |         -   ^^^^^^^^^^^^^^^^^^^ cannot infer type for type parameter `T`
    |         |
    |         consider giving `y` the explicit type `Mask<_, LANES>`, where the type parameter `T` is specified
    |
    = note: cannot satisfy `_: MaskElement`
note: required by a bound in `Mask::<T, LANES>::splat`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0283`.
==============
@Alexendoo Alexendoo merged commit 42afcb6 into master Dec 14, 2021
@Alexendoo Alexendoo deleted the autofix/ices/91614.rs branch December 14, 2021 17:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants