-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
be1ed00
commit b97951b
Showing
6 changed files
with
101 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
#![crate_type="lib"] | ||
#![feature(const_generics)] | ||
#![feature(min_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 | ||
//~^ ERROR cannot find type | ||
//~| unresolved item provided when a constant | ||
|
||
struct B<const N: u8>; | ||
impl<N> Foo for B<N> {} | ||
//~^ ERROR type provided when a constant | ||
|
||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters