Skip to content

Commit b8a88ea

Browse files
authored
Rollup merge of #165824 - zakrad:hrtb-tryfrom-debug-81162, r=aerooneqq
Add regression test for HRTB projection bound with TryFrom error Fixes #81162 This was fixed by #85499.
2 parents a1841f5 + 50f93bc commit b8a88ea

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//! Regression test for <https://github.com/rust-lang/rust/issues/81162>.
2+
//@ check-pass
3+
4+
use std::convert::TryFrom;
5+
use std::fmt::Debug;
6+
7+
fn read<T>() -> Vec<T>
8+
where
9+
for<'a> T: TryFrom<&'a [f32]>,
10+
for<'a> <T as TryFrom<&'a [f32]>>::Error: Debug,
11+
{
12+
Vec::new()
13+
}
14+
15+
fn main() {
16+
let _ = read::<[f32; 128]>();
17+
}

0 commit comments

Comments
 (0)