forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
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
00ed73c
commit 16394e9
Showing
3 changed files
with
52 additions
and
6 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Make sure we don't mess up the formatting of generic consts | ||
|
||
#![feature(generic_const_items)] | ||
|
||
const GENERIC<N, const M: usize>: i32 = 0; | ||
|
||
const WHERECLAUSE: i32 = 0 | ||
where | ||
i32:; | ||
|
||
trait Foo { | ||
const GENERIC<N, const M: usize>: i32; | ||
|
||
const WHERECLAUSE: i32 | ||
where | ||
i32:; | ||
} | ||
|
||
impl Foo for () { | ||
const GENERIC<N, const M: usize>: i32 = 0; | ||
|
||
const WHERECLAUSE: i32 = 0 | ||
where | ||
i32:; | ||
} |