forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Left a todo awhile ago (I think), so fill it in to print a const for `Term`s.
- Loading branch information
1 parent
a8207df
commit 8a4cbf4
Showing
2 changed files
with
18 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#![crate_name = "foo"] | ||
|
||
#![feature(associated_const_equality)] | ||
pub enum ParseMode { | ||
Raw, | ||
} | ||
pub trait Parse { | ||
const PARSE_MODE: ParseMode; | ||
} | ||
pub trait RenderRaw {} | ||
|
||
// @hasraw foo/trait.RenderRaw.html 'impl' | ||
// @hasraw foo/trait.RenderRaw.html 'ParseMode::Raw' | ||
impl<T: Parse<PARSE_MODE = { ParseMode::Raw }>> RenderRaw for T {} |