2021-02-13 01:53:28 -06:00
|
|
|
#![crate_type="lib"]
|
|
|
|
|
|
|
|
struct A<const N: u8>;
|
|
|
|
trait Foo {}
|
|
|
|
impl Foo for A<N> {}
|
2021-02-13 22:35:18 -06:00
|
|
|
//~^ ERROR cannot find type
|
|
|
|
//~| unresolved item provided when a constant
|
2021-02-13 01:53:28 -06:00
|
|
|
|
|
|
|
struct B<const N: u8>;
|
|
|
|
impl<N> Foo for B<N> {}
|
|
|
|
//~^ ERROR type provided when a constant
|
2021-02-13 22:35:18 -06:00
|
|
|
|
|
|
|
struct C<const C: u8, const N: u8>;
|
|
|
|
impl<const N: u8> Foo for C<N, T> {}
|
|
|
|
//~^ ERROR cannot find type
|
|
|
|
//~| unresolved item provided when a constant
|