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
e5565b1aaa6ec4a0edb08d2bcb09cf4bdae01b6d
rust/tests/ui/error-codes/E0435.rs

7 lines
130 B
Rust
Raw Normal View History

Use correct span for structured suggestion On structured suggestion for `let` -> `const` and `const` -> `let`, use a proper `Span` and update tests to check the correct application. Follow up to #80012.
2021-01-07 16:44:08 -08:00
// run-rustfix
Add new error code tests
2016-08-17 23:45:10 +02:00
fn main () {
Use correct span for structured suggestion On structured suggestion for `let` -> `const` and `const` -> `let`, use a proper `Span` and update tests to check the correct application. Follow up to #80012.
2021-01-07 16:44:08 -08:00
#[allow(non_upper_case_globals)]
let foo: usize = 42;
rustc_resolve: don't deny outer type parameters in embedded constants.
2017-04-21 17:10:22 +03:00
let _: [u8; foo]; //~ ERROR E0435
Add new error code tests
2016-08-17 23:45:10 +02:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 2354ms 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