fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
257 B12 linesraw
1fn assert_send<T:Send>() { }
2
3// unsafe ptrs are ok unless they point at unsendable things
4fn test70() {
5    assert_send::<*mut int>();
6}
7fn test71<'a>() {
8    assert_send::<*mut &'a int>(); //~ ERROR does not fulfill the required lifetime
9}
10
11fn main() {
12}