Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
19
tests/ui/structs-enums/foreign-struct.rs
Normal file
19
tests/ui/structs-enums/foreign-struct.rs
Normal file
|
@ -0,0 +1,19 @@
|
|||
// run-pass
|
||||
#![allow(dead_code)]
|
||||
#![allow(non_camel_case_types)]
|
||||
|
||||
// Passing enums by value
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
pub enum void {}
|
||||
|
||||
mod bindgen {
|
||||
use super::void;
|
||||
|
||||
extern "C" {
|
||||
pub fn printf(v: void);
|
||||
}
|
||||
}
|
||||
|
||||
pub fn main() {}
|
Loading…
Add table
Add a link
Reference in a new issue