summaryrefslogtreecommitdiffstats
path: root/src/test/ui/const-generics/const-argument-cross-crate.rs
blob: 5693409e99205c8ce45ee9c2b55993c438110d33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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]));
}