]> git.proxmox.com Git - rustc.git/blame - src/test/ui/traits/issue-72410.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / traits / issue-72410.rs
CommitLineData
3dfed10e
XL
1// Regression test for #72410, this should be used with debug assertion enabled.
2
3// should be fine
4pub trait Foo {
5 fn map()
6 where
7 Self: Sized,
8 for<'a> &'a mut [u8]: ;
9}
10
11// should fail
12pub trait Bar {
13 fn map()
14 where for<'a> &'a mut [dyn Bar]: ;
15 //~^ ERROR: the trait `Bar` cannot be made into an object
16}
17
18fn main() {}