]> git.lizzy.rs Git - rust.git/blob - src/test/ui/sized-borrowed-pointer.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / sized-borrowed-pointer.rs
1 // run-pass
2
3 #![allow(dead_code)]
4 // Possibly-dynamic size of typaram should be cleared at pointer boundary.
5
6 // pretty-expanded FIXME #23616
7
8 fn bar<T: Sized>() { }
9 fn foo<T>() { bar::<&T>() }
10 pub fn main() { }