mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-01 20:47:36 +00:00

Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
12 lines
186 B
Rust
12 lines
186 B
Rust
//@ run-pass
|
|
|
|
#[repr(C)]
|
|
pub struct Foo(u32);
|
|
|
|
// ICE trigger, bad handling of differing types between rust and external ABIs
|
|
pub extern "C" fn bar() -> Foo {
|
|
Foo(0)
|
|
}
|
|
|
|
fn main() {}
|