2019-10-13 17:52:09 +13:00
|
|
|
// run-pass
|
2020-09-10 09:30:05 +02:00
|
|
|
// revisions: full min
|
2019-10-13 17:52:09 +13:00
|
|
|
// aux-build:const_generic_lib.rs
|
|
|
|
|
|
|
|
extern crate const_generic_lib;
|
|
|
|
|
2022-07-25 22:36:03 +02:00
|
|
|
struct Container(#[allow(unused_tuple_struct_fields)] const_generic_lib::Alias);
|
2019-10-13 17:52:09 +13:00
|
|
|
|
|
|
|
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]));
|
|
|
|
}
|