-
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.
deeply_normalize
tys in check_tys_might_be_eq
Co-authored-by: Boxy <[email protected]>
- Loading branch information
Showing
5 changed files
with
42 additions
and
38 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,20 @@ | ||
//! Issue #114456: `deeply_normalize` tys in `check_tys_might_be_eq` | ||
//@ check-pass | ||
#![feature(adt_const_params)] | ||
#![allow(incomplete_features)] | ||
|
||
enum Type {} | ||
trait Trait { type Matrix; } | ||
impl Trait for Type { type Matrix = [usize; 1]; } | ||
|
||
struct Walk<const REMAINING: <Type as Trait>::Matrix> {} | ||
|
||
impl Walk<{ [0; 1] }> { | ||
pub const fn new() -> Self { | ||
Self {} | ||
} | ||
} | ||
|
||
fn main() { | ||
let _ = Walk::new(); | ||
} |
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,17 @@ | ||
//! Issue #114456: `deeply_normalize` tys in `check_tys_might_be_eq` | ||
//@ check-pass | ||
#![feature(adt_const_params, lazy_type_alias)] | ||
#![allow(incomplete_features)] | ||
|
||
type Matrix = [usize; 1]; | ||
struct Walk<const REMAINING: Matrix> {} | ||
|
||
impl Walk<{ [0; 1] }> { | ||
pub const fn new() -> Self { | ||
Self {} | ||
} | ||
} | ||
|
||
fn main() { | ||
let _ = Walk::new(); | ||
} |