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

ices/87802.rs: fixed with errors #900

Merged
merged 1 commit into from
Aug 19, 2021
Merged

ices/87802.rs: fixed with errors #900

merged 1 commit into from
Aug 19, 2021

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#87802

#![feature(asm)]

fn hmm() -> ! {
    let x;
    unsafe {
        asm!("/* {0} */", out(reg) x);
    }
    x
}

fn main() {
    hmm();
}
=== stdout ===
=== stderr ===
error: cannot use value of type `!` for inline assembly
 --> /home/runner/work/glacier/glacier/ices/87802.rs:6:36
  |
6 |         asm!("/* {0} */", out(reg) x);
  |                                    ^
  |
  = note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly

error: aborting due to previous error

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

=== stdout ===
=== stderr ===
error: cannot use value of type `!` for inline assembly
 --> /home/runner/work/glacier/glacier/ices/87802.rs:6:36
  |
6 |         asm!("/* {0} */", out(reg) x);
  |                                    ^
  |
  = note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly

error: aborting due to previous error

==============
Copy link
Member

@JohnTitor JohnTitor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@JohnTitor JohnTitor merged commit 550fc13 into master Aug 19, 2021
@JohnTitor JohnTitor deleted the autofix/ices/87802.rs branch August 19, 2021 12:39
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