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

ices/68060.rs: fixed with errors #292

Merged
merged 1 commit into from
Feb 16, 2020
Merged

ices/68060.rs: fixed with errors #292

merged 1 commit into from
Feb 16, 2020

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#68060

fn main() {
    (0..)
        .map(
            #[target_feature(enable = "")]
            |_| (),
        )
        .next();
}
=== stdout ===
=== stderr ===
error: `#[target_feature(..)]` can only be applied to `unsafe` functions
 --> /home/runner/work/glacier/glacier/ices/68060.rs:4:13
  |
4 |             #[target_feature(enable = "")]
  |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can only be applied to `unsafe` functions
5 |             |_| (),
  |             ------ not an `unsafe` function

error: the feature named `` is not valid for this target
 --> /home/runner/work/glacier/glacier/ices/68060.rs:4:30
  |
4 |             #[target_feature(enable = "")]
  |                              ^^^^^^^^^^^ `` is not valid for this target

error: aborting due to 2 previous errors

==============

=== stdout ===
=== stderr ===
error: `#[target_feature(..)]` can only be applied to `unsafe` functions
 --> /home/runner/work/glacier/glacier/ices/68060.rs:4:13
  |
4 |             #[target_feature(enable = "")]
  |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can only be applied to `unsafe` functions
5 |             |_| (),
  |             ------ not an `unsafe` function

error: the feature named `` is not valid for this target
 --> /home/runner/work/glacier/glacier/ices/68060.rs:4:30
  |
4 |             #[target_feature(enable = "")]
  |                              ^^^^^^^^^^^ `` is not valid for this target

error: aborting due to 2 previous errors

==============
@Alexendoo Alexendoo merged commit 01b4e6e into master Feb 16, 2020
@Alexendoo Alexendoo deleted the autofix/ices/68060.rs branch February 16, 2020 13:35
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