summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/const-argument-cross-crate-mismatch.rs
blob: d863d097d5caf324554f323cf7f3bb0953205027 (plain)
1
2
3
4
5
6
7
8
9
10
// aux-build:const_generic_lib.rs

extern crate const_generic_lib;

fn main() {
    let _ = const_generic_lib::function(const_generic_lib::Struct([0u8, 1u8]));
    //~^ ERROR mismatched types
    let _: const_generic_lib::Alias = const_generic_lib::Struct([0u8, 1u8, 2u8]);
    //~^ ERROR mismatched types
}