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
51b51b51d7931da85280382a81c4dd80c73ca754
rust/tests/ui/issues/issue-18423.rs

9 lines
203 B
Rust
Raw Normal View History

Refactor generic argument count check in astconv
2018-08-07 18:53:43 +01:00
// Test that `Box` cannot be used with a lifetime argument.
Support parenthesized paths `Foo(A,B) -> C` that expand to `Foo<(A,B),C>`. These paths also bind anonymous regions (or will, once HRTB is fully working). Fixes #18423.
2014-11-03 21:52:52 -05:00
struct Foo<'a> {
Rework diagnostics for wrong number of generic args
2021-01-02 19:45:11 +01:00
x: Box<'a, isize>
diagnostics: remove inconsistent English article "this" from E0107 Consider `tests/ui/const-generics/generic_const_exprs/issue-102768.stderr`, the error message where it gives additional notes about where the associated type is defined, and how the dead code lint doesn't have an article, like in `tests/ui/lint/dead-code/issue-85255.stderr`. They don't have articles, so it seems unnecessary to have one here.
2023-02-23 10:27:06 -07:00
//~^ ERROR struct takes 0 lifetime arguments but 1 lifetime argument was supplied
Support parenthesized paths `Foo(A,B) -> C` that expand to `Foo<(A,B),C>`. These paths also bind anonymous regions (or will, once HRTB is fully working). Fixes #18423.
2014-11-03 21:52:52 -05:00
}
Rework diagnostics for wrong number of generic args
2021-01-02 19:45:11 +01:00
fn main() { }
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 3983ms 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