| 1 |
error: it is currently not sound to use lifetimes in function signatures |
| 2 |
--> ui-tests/invalid-imports.rs:7:16 |
| 3 |
| |
| 4 |
7 | fn f() -> &'static u32; |
| 5 |
| ^^^^^^^ |
| 6 |
|
| 7 |
error: imported methods must have at least one argument |
| 8 |
--> ui-tests/invalid-imports.rs:10:5 |
| 9 |
| |
| 10 |
10 | fn f1(); |
| 11 |
| ^^^^^^^^ |
| 12 |
|
| 13 |
error: first argument of method must be a shared reference |
| 14 |
--> ui-tests/invalid-imports.rs:12:14 |
| 15 |
| |
| 16 |
12 | fn f2(x: u32); |
| 17 |
| ^^^ |
| 18 |
|
| 19 |
error: first argument of method must be a path |
| 20 |
--> ui-tests/invalid-imports.rs:14:15 |
| 21 |
| |
| 22 |
14 | fn f3(x: &&u32); |
| 23 |
| ^^^^ |
| 24 |
|
| 25 |
error: paths with type parameters are not supported yet |
| 26 |
--> ui-tests/invalid-imports.rs:20:15 |
| 27 |
| |
| 28 |
20 | fn f4(x: &Bar<T>); |
| 29 |
| ^^^^^^ |
| 30 |
|
| 31 |
error: first argument of method must be a path |
| 32 |
--> ui-tests/invalid-imports.rs:22:15 |
| 33 |
| |
| 34 |
22 | fn f4(x: &dyn Fn(T)); |
| 35 |
| ^^^^^^^^^ |
| 36 |
|
| 37 |
error: constructor returns must be bare types |
| 38 |
--> ui-tests/invalid-imports.rs:25:5 |
| 39 |
| |
| 40 |
25 | fn f(); |
| 41 |
| ^^^^^^^ |
| 42 |
|
| 43 |
error: return value of constructor must be a bare path |
| 44 |
--> ui-tests/invalid-imports.rs:29:5 |
| 45 |
| |
| 46 |
29 | fn f() -> &Bar; |
| 47 |
| ^^^^^^^^^^^^^^^ |
| 48 |
|
| 49 |
error: must be Result<...> |
| 50 |
--> ui-tests/invalid-imports.rs:32:15 |
| 51 |
| |
| 52 |
32 | fn f() -> u32; |
| 53 |
| ^^^ |
| 54 |
|
| 55 |
error: must be Result<...> |
| 56 |
--> ui-tests/invalid-imports.rs:34:15 |
| 57 |
| |
| 58 |
34 | fn f() -> &u32; |
| 59 |
| ^^^^ |
| 60 |
|
| 61 |
error: must have at least one generic parameter |
| 62 |
--> ui-tests/invalid-imports.rs:36:15 |
| 63 |
| |
| 64 |
36 | fn f() -> Result<>; |
| 65 |
| ^^^^^^^^ |
| 66 |
|
| 67 |
error: it is currently not sound to use lifetimes in function signatures |
| 68 |
--> ui-tests/invalid-imports.rs:38:22 |
| 69 |
| |
| 70 |
38 | fn f() -> Result<'a>; |
| 71 |
| ^^ |