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
901b340c1f5d208561d4261cc3ee634973b35326
rust/tests/ui/imports/import-in-block.rs

14 lines
233 B
Rust
Raw Normal View History

[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
2024-02-16 20:02:50 +00:00
//@ run-pass
//@ pretty-expanded FIXME #23616
rustdoc: Replace no-pretty-expanded with pretty-expanded Now that features must be declared expanded source often does not compile. This adds 'pretty-expanded' to a bunch of test cases that still work.
2015-03-22 13:13:15 -07:00
check-fast fallout from removing export, r=burningtree
2013-02-01 19:43:17 -08:00
pub fn main() {
Move replace and swap to std::mem. Get rid of std::util Also move Void to std::any, move drop to std::mem and reexport in prelude.
2014-02-01 04:35:36 +08:00
use std::mem::replace;
Remove all `i` suffixes
2015-01-25 22:05:03 +01:00
let mut x = 5;
Fix unused results from mem::replace
2020-04-17 13:59:14 -07:00
let _ = replace(&mut x, 6);
Allow import directives in any block Closes #49
2011-11-23 20:57:34 +01:00
{
Move replace and swap to std::mem. Get rid of std::util Also move Void to std::any, move drop to std::mem and reexport in prelude.
2014-02-01 04:35:36 +08:00
use std::mem::*;
Remove all `i` suffixes
2015-01-25 22:05:03 +01:00
let mut y = 6;
remove deprecated vec::{is_empty, len} functions
2013-06-08 21:38:47 -04:00
swap(&mut x, &mut y);
Allow import directives in any block Closes #49
2011-11-23 20:57:34 +01:00
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 3959ms 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