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/issues/issue-3290.rs

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

9 lines
121 B
Rust
Raw Normal View History

Add `// run-pass` annotations to all the tests under `ui/run-pass/`. (I may have accidentally added it to some auxilliary crates as well; my emacs-macro-based methodology was pretty crude.)
2018-08-30 14:18:55 +02:00
//@ run-pass
Warn about useless assignments of variables/fields to themselves
2021-07-14 15:34:28 +02:00
#![allow(dead_code)]
fallout: run-pass tests that use box. (many could be ported to `Box::new` instead in the future.)
2015-01-08 02:25:56 +01:00
test: Make all the run-pass tests use `pub fn main`
2014-01-03 15:30:54 -08:00
pub fn main() {
Remove even more box syntax uses from src/test Prior work, notably 6550021124451628b1efc60c59284465b109e3aa from #88316 has removed box syntax from most of the testsuite. However, some tests were left out. This commit removes box_syntax uses from more locations in src/test. Some tests that are very box syntax specific are not being migrated.
2022-07-07 04:36:10 +02:00
let mut x: Box<_> = Box::new(3);
testsuite: Add xfailed test cases
2013-05-21 13:12:31 -07:00
x = x;
assert_eq!(*x, 3);
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 6007ms Template: 4ms
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