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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
131 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: 3127ms 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