This commit is contained in:
Deadbeef 2022-08-22 11:41:38 +00:00
parent f019b6c5e8
commit f1db3be9cf
2 changed files with 13 additions and 17 deletions

View file

@ -19,7 +19,9 @@ impl Index for () { type Output = (); }
impl const IndexMut for <() as Index>::Output {
const C: <Self as Index>::Output = ();
type Assoc = <Self as Index>::Output;
fn foo(&mut self, x: <Self as Index>::Output) -> <Self as Index>::Output where <Self as Index>::Output: {}
fn foo(&mut self, x: <Self as Index>::Output) -> <Self as Index>::Output
where <Self as Index>::Output:,
{}
}
const C: <() as Index>::Output = ();