mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-03 05:27:36 +00:00
14 lines
296 B
Rust
14 lines
296 B
Rust
![]() |
#![crate_type="lib"]
|
||
|
#![feature(const_generics)]
|
||
|
#![allow(incomplete_features)]
|
||
|
|
||
|
struct A<const N: u8>;
|
||
|
trait Foo {}
|
||
|
impl Foo for A<N> {}
|
||
|
//~^ ERROR type provided when a constant
|
||
|
//~| ERROR cannot find type
|
||
|
|
||
|
struct B<const N: u8>;
|
||
|
impl<N> Foo for B<N> {}
|
||
|
//~^ ERROR type provided when a constant
|