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
master
rust/tests/ui/tuple/index-float.rs

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

11 lines
200 B
Rust
Raw Permalink Normal View History

Update dtolnay's tests that now work
2020-04-19 15:30:34 +03:00
//@ check-pass
Add tests in which the token really is a float
2020-03-26 09:36:05 -07:00
fn main() {
let tuple = (((),),);
Adjust UI tests for `unit_bindings` - Either explicitly annotate `let x: () = expr;` where `x` has unit type, or remove the unit binding to leave only `expr;` instead. - Fix disjoint-capture-in-same-closure test
2023-06-12 16:55:36 +08:00
let () = tuple. 0.0; // OK, whitespace
let () = tuple.0. 0; // OK, whitespace
Add tests in which the token really is a float
2020-03-26 09:36:05 -07:00
Adjust UI tests for `unit_bindings` - Either explicitly annotate `let x: () = expr;` where `x` has unit type, or remove the unit binding to leave only `expr;` instead. - Fix disjoint-capture-in-same-closure test
2023-06-12 16:55:36 +08:00
let () = tuple./*special cases*/0.0; // OK, comment
Add tests in which the token really is a float
2020-03-26 09:36:05 -07:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 2227ms 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