]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/cross_crate_complex.rs
Move generic error message to separate branches
[rust.git] / src / test / ui / const-generics / cross_crate_complex.rs
1 // aux-build:crayte.rs
2 // edition:2018
3 // run-pass
4 extern crate crayte;
5
6 use crayte::*;
7
8 async fn foo() {
9     in_foo(out_foo::<3>());
10     async_simple([0; 17]).await;
11     async_in_foo(async_out_foo::<4>().await).await;
12 }
13
14 struct Faz<const N: usize>;
15
16 impl<const N: usize> Foo<N> for Faz<N> {}
17 impl<const N: usize> Bar<N> for Faz<N> {
18     type Assoc = Faz<N>;
19 }
20
21 fn main() {
22     let _ = foo;
23 }