diff options
| author | León Orell Valerian Liehr <me@fmease.dev> | 2023-05-17 19:47:23 +0200 |
|---|---|---|
| committer | León Orell Valerian Liehr <me@fmease.dev> | 2023-05-17 23:53:58 +0200 |
| commit | 0eb364b8d6f6b77f0c43467d81867f7a196a1794 (patch) | |
| tree | 4bdf29bfe7186b4842df4677d327600301287650 | |
| parent | 506b50ee39229772305c9e279f6609cf4546d569 (diff) | |
| download | rust-0eb364b8d6f6b77f0c43467d81867f7a196a1794.tar.gz rust-0eb364b8d6f6b77f0c43467d81867f7a196a1794.zip | |
Exclude inherent projections from some alias ty matches
| -rw-r--r-- | tests/ui/issue-111399.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/issue-111399.rs b/tests/ui/issue-111399.rs new file mode 100644 index 00000000000..b65e6c7261a --- /dev/null +++ b/tests/ui/issue-111399.rs @@ -0,0 +1,13 @@ +#![feature(inherent_associated_types)] +#![allow(incomplete_features)] + +// Check that rustc doesn't crash on the trait bound `Self::Ty: std::marker::Freeze`. + +pub struct Struct; + +impl Struct { + pub type Ty = usize; + pub const CT: Self::Ty = 42; +} + +fn main() {} |
