Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
51b51b51d7931da85280382a81c4dd80c73ca754
rust/tests/ui/mut/mut-cross-borrowing.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
116 B
Rust
Raw Normal View History

Update compile fail tests to use isize.
2015-01-08 21:54:35 +11:00
fn f(_: &mut isize) {}
librustc: Remove cross borrowing from mutable `Box`es to `&mut`. This will break code like: fn f(x: &mut int) {} let mut a = box 1i; f(a); Change it to: fn f(x: &mut int) {} let mut a = box 1i; f(&mut *a); RFC 33; issue #10504. [breaking-change]
2014-06-24 23:11:57 -07:00
fn main() {
Remove box syntax from most places in src/test outside of the issues dir
2021-08-25 02:39:40 +02:00
let mut x: Box<_> = Box::new(3);
librustc: Remove cross borrowing from mutable `Box`es to `&mut`. This will break code like: fn f(x: &mut int) {} let mut a = box 1i; f(a); Change it to: fn f(x: &mut int) {} let mut a = box 1i; f(&mut *a); RFC 33; issue #10504. [breaking-change]
2014-06-24 23:11:57 -07:00
f(x) //~ ERROR mismatched types
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 4518ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API