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
master
rust/tests/ui/generics/single-colon-path-not-const-generics.rs

14 lines
208 B
Rust
Raw Permalink Normal View History

diagnostics: single colon within `<>` probably, not type ascription Fixes #94812
2022-03-11 15:26:19 -07:00
pub mod foo {
pub mod bar {
pub struct A;
}
}
pub struct Foo {
a: Vec<foo::bar:A>,
Rip it out My type ascription Oh rip it out Ah If you think we live too much then You can sacrifice diagnostics Don't mix your garbage Into my syntax So many weird hacks keep diagnostics alive Yet I don't even step outside So many bad diagnostics keep tyasc alive Yet tyasc doesn't even bother to survive!
2022-11-16 21:46:06 +01:00
//~^ ERROR path separator must be a double colon
//~| HELP use a double colon instead
diagnostics: single colon within `<>` probably, not type ascription Fixes #94812
2022-03-11 15:26:19 -07:00
}
fn main() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 1307ms 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