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
359bfa901b9d8eddbed7b88b6716dbb77b7bfb95
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: 5381ms Template: 3ms
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