fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.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}