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
647f1536d2f50b203ca9a67396225c4f7771e1c8
rust/tests/ui/generics/generic-enum-errors.rs

16 lines
258 B
Rust
Raw Normal View History

cleaned up some tests Additionally, remove unused `tests/ui/auxiliary/svh-*` crates that are duplicates of `tests/ui/svh/auxiliary/svh-*`.
2025-07-01 20:20:14 +05:00
//! This test checks that unused generics are rejected by compiler
Improve error message for wrong number of type arguments Improve error message in the case where a use of a polymorphic tag has insufficient type arguments given. Before, the typechecker was just crashing with a bounds check error.
2011-06-09 14:49:45 -07:00
cleaned up some tests Additionally, remove unused `tests/ui/auxiliary/svh-*` crates that are duplicates of `tests/ui/svh/auxiliary/svh-*`.
2025-07-01 20:20:14 +05:00
enum Quux<T> {
//~^ ERROR: parameter `T` is never used
Bar,
}
Improve error message for wrong number of type arguments Improve error message in the case where a use of a polymorphic tag has insufficient type arguments given. Before, the typechecker was just crashing with a bounds check error.
2011-06-09 14:49:45 -07:00
cleaned up some tests Additionally, remove unused `tests/ui/auxiliary/svh-*` crates that are duplicates of `tests/ui/svh/auxiliary/svh-*`.
2025-07-01 20:20:14 +05:00
fn foo(c: Quux) {
//~^ ERROR missing generics for enum `Quux`
assert!((false));
}
fn main() {
panic!();
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 5717ms 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