blob: 98cf39a7ee11cdb38485d856fdd73b429bf64af9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// run-pass
// aux-build:const_generic_lib.rs
extern crate const_generic_lib;
struct Container(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]));
}
|