]> git.lizzy.rs Git - rust.git/blobdiff - tests/target/imports.rs
Add a test for #2888
[rust.git] / tests / target / imports.rs
index 68d9bb5519eaf5d4fae39bbf42b736cbfe619ab8..36bbc20547c40aeda8a862790873885e3a036d2b 100644 (file)
@@ -1,5 +1,4 @@
 // rustfmt-normalize_comments: true
-// rustfmt-error_on_line_overflow: false
 
 // Imports.
 
@@ -18,7 +17,7 @@
     // Last Item
     LastItem,
     // Some item
-    SomeItem, /* Comment */
+    SomeItem, // Comment
 };
 
 use test::{/* A */ self /* B */, Other /* C */};
@@ -80,18 +79,13 @@ fn test() {
 
 // nested imports
 use foo::{
-    a,
-    b,
+    a, b,
     bar::{
         baz,
         foo::{a, b, cxxxxxxxxxxxxx, yyyyyyyyyyyyyy, zzzzzzzzzzzzzzzz},
-        qux,
-        xxxxxxxxxxx,
-        yyyyyyyyyyyyy,
-        zzzzzzzzzzzzzzzz,
+        qux, xxxxxxxxxxx, yyyyyyyyyyyyy, zzzzzzzzzzzzzzzz,
     },
-    boo,
-    c,
+    boo, c,
 };
 
 use fooo::{
@@ -101,9 +95,16 @@ fn test() {
     },
     bar,
     bar::*,
-    x,
-    y,
-    z,
+    x, y, z,
+};
+
+use exonum::{
+    api::{Api, ApiError},
+    blockchain::{self, BlockProof, Blockchain, Transaction, TransactionSet},
+    crypto::{Hash, PublicKey},
+    helpers::Height,
+    node::TransactionSend,
+    storage::{ListProof, MapProof},
 };
 
 // nested imports with a single sub-tree.
@@ -115,3 +116,10 @@ fn test() {
 /// This line is not affected.
 // This line is deleted.
 use c;
+
+// #2670
+#[macro_use]
+use imports_with_attr;
+
+// #2888
+use std::f64::consts::{E, PI, SQRT_2};