diff options
| author | bors <bors@rust-lang.org> | 2022-09-02 18:40:21 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-09-02 18:40:21 +0000 |
| commit | 9ba169a73acfa9c9875b76eec09e9a91cc6246df (patch) | |
| tree | 356cb29d703b6de6f28ac6d1c455274822bbb1e9 /src/test | |
| parent | b88e510cc886e4c367d90e1c7c36013a4bc0d6ab (diff) | |
| parent | e77b8ce1001b3174c5acc1990a4c86c73b0cd1e8 (diff) | |
Auto merge of #101333 - matthiaskrgr:rollup-qpf1otj, r=matthiaskrgr
Rollup of 6 pull requests Successful merges: - #100121 (Try normalizing types without RevealAll in ParamEnv in MIR validation) - #100200 (Change implementation of `-Z gcc-ld` and `lld-wrapper` again) - #100814 ( Porting 'compiler/rustc_trait_selection' to translatable diagnostics - Part 1) - #101215 (Also replace the version placeholder in rustc_attr) - #101260 (Use `FILE_ATTRIBUTE_TAG_INFO` to get reparse tag) - #101323 (Remove unused .toggle-label CSS rule) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/mir/issue-99866.rs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/test/ui/mir/issue-99866.rs b/src/test/ui/mir/issue-99866.rs new file mode 100644 index 00000000000..d39ae6ebf1d --- /dev/null +++ b/src/test/ui/mir/issue-99866.rs @@ -0,0 +1,25 @@ +// check-pass +pub trait Backend { + type DescriptorSetLayout; +} + +pub struct Back; + +impl Backend for Back { + type DescriptorSetLayout = u32; +} + +pub struct HalSetLayouts { + vertex_layout: <Back as Backend>::DescriptorSetLayout, +} + +impl HalSetLayouts { + pub fn iter<DSL>(self) -> DSL + where + Back: Backend<DescriptorSetLayout = DSL>, + { + self.vertex_layout + } +} + +fn main() {} |
