]> git.lizzy.rs Git - rust.git/blob - src/test/ui/trait-bounds/issue-93008.rs
Rollup merge of #96684 - tmiasko:mir-downcast, r=petrochenkov
[rust.git] / src / test / ui / trait-bounds / issue-93008.rs
1 // compile-flags: -Zmir-opt-level=4
2
3 pub fn bar<T>(s: &'static mut ())
4 where
5     &'static mut (): Clone, //~ ERROR the trait bound
6 {
7     <&'static mut () as Clone>::clone(&s);
8 }
9
10 fn main() {}