Created
September 20, 2019 20:53
-
-
Save rust-play/64b3b6f8d8bc78c94ea81ae895d32abe to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
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
#![feature(const_generics)] | |
trait Foo { | |
const A: usize; | |
} | |
trait Aux<const A: usize> {} | |
impl<T: Foo> Aux<{ <T as Foo>::A }> for T where T: Foo {} | |
trait Trait {} | |
impl<T> Trait for T where T: Aux<{ 2 }> {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment