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
58e901b6fd1163172149fd422565523b17eed5f0
rust/tests/ui/codemap_tests/issue-11715.rs

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

12 lines
288 B
Rust
Raw Normal View History

Workaround rust-lang/rust#49855 by forcing rustc_error in any mode, including NLL. NOTE: I was careful to make each change in a manner that preserves the existing diagnostic output (usually by ensuring that no lines were added or removed). This means that the resulting source files are not as nice to read as they were at the start. But we will have to review these cases by hand anyway as follow-up work, so cleanup could reasonably happen then (or not at all).
2018-04-11 00:20:05 +02:00
#![feature(rustc_attrs)]
fn main() { #![rustc_error] // rust-lang/rust#49855
Add fix for tabs. Move error unit tests->ui tests
2016-07-13 17:53:42 -04:00
let mut x = "foo";
let y = &mut x;
Merge cfail and ui tests into ui tests
2017-11-20 13:13:27 +01:00
let z = &mut x; //~ ERROR cannot borrow
rust-lang/rust#51025: improve test robustness so that they work under NLL too.
2018-05-25 12:36:58 +02:00
z.use_mut();
y.use_mut();
Add fix for tabs. Move error unit tests->ui tests
2016-07-13 17:53:42 -04:00
}
rust-lang/rust#51025: improve test robustness so that they work under NLL too.
2018-05-25 12:36:58 +02:00
trait Fake { fn use_mut(&mut self) { } fn use_ref(&self) { } }
impl<T> Fake for T { }
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 1444ms 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