mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-05 21:24:12 +00:00
14 lines
376 B
Rust
14 lines
376 B
Rust
// run-pass
|
|
// revisions: full min
|
|
// aux-build:const_generic_lib.rs
|
|
|
|
extern crate const_generic_lib;
|
|
|
|
struct Container(#[allow(unused_tuple_struct_fields)] const_generic_lib::Alias);
|
|
|
|
fn main() {
|
|
let res = const_generic_lib::function(const_generic_lib::Struct([14u8, 1u8, 2u8]));
|
|
assert_eq!(res, 14u8);
|
|
let _ = Container(const_generic_lib::Struct([0u8, 1u8]));
|
|
}
|