Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
master
rust/tests/ui/enum/enum-with-generic-parameter-5997.rs

17 lines
217 B
Rust
Raw Permalink Normal View History

Add test batch 1
2025-08-20 14:02:39 -04:00
// https://github.com/rust-lang/rust/issues/5997
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
2024-02-16 20:02:50 +00:00
//@ run-pass
Add `#![allow(..)]` as necessary to get re-migrated run-pass tests compiling with clean stderr again. Most were added mechanically.
2018-09-25 23:51:35 +02:00
#![allow(dead_code)]
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
Tests for issue 5997 failure and success conditions. Closes #5997.
2014-04-15 05:58:22 +01:00
fn f<T>() -> bool {
enum E<T> { V(T) }
struct S<T>(T);
true
}
fn main() {
Mass rename uint/int to usize/isize Now that support has been removed, all lingering use cases are renamed.
2015-03-25 17:06:52 -07:00
let b = f::<isize>();
Tests for issue 5997 failure and success conditions. Closes #5997.
2014-04-15 05:58:22 +01:00
assert!(b);
core: rename strbuf::StrBuf to string::String [breaking-change]
2014-05-22 16:57:53 -07:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 4150ms Template: 2ms
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