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
359bfa901b9d8eddbed7b88b6716dbb77b7bfb95
rust/tests/ui/drop/enum-drop-impl-15063.rs

15 lines
269 B
Rust
Raw Normal View History

comments
2025-07-24 19:07:20 +05:00
//! Regression test for https://github.com/rust-lang/rust/issues/15063
[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)]
#![allow(unused_variables)]
Add tests for E-needstest issues
2014-11-03 00:58:00 +01:00
enum Two { A, B}
impl Drop for Two {
fn drop(&mut self) {
println!("Dropping!");
}
}
fn main() {
Switch to purely namespaced enums This breaks code that referred to variant names in the same namespace as their enum. Reexport the variants in the old location or alter code to refer to the new locations: ``` pub enum Foo { A, B } fn main() { let a = A; } ``` => ``` pub use self::Foo::{A, B}; pub enum Foo { A, B } fn main() { let a = A; } ``` or ``` pub enum Foo { A, B } fn main() { let a = Foo::A; } ``` [breaking-change]
2014-11-06 00:05:53 -08:00
let k = Two::A;
Add tests for E-needstest issues
2014-11-03 00:58:00 +01:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 3409ms 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