rust/tests/ui/const-generics/const-argument-cross-crate-mismatch.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
309 B
Rust
Raw Normal View History

//@ 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
}