fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: an `fn` pointer type cannot be `const` 2 --> $DIR/bad-fn-ptr-qualifier.rs:5:15 3 | 4LL | pub type T0 = const fn(); 5 | -----^^^^^ 6 | | 7 | `const` because of this 8 | help: remove the `const` qualifier 9 10error: an `fn` pointer type cannot be `const` 11 --> $DIR/bad-fn-ptr-qualifier.rs:6:15 12 | 13LL | pub type T1 = const extern "C" fn(); 14 | -----^^^^^^^^^^^^^^^^ 15 | | 16 | `const` because of this 17 | help: remove the `const` qualifier 18 19error: an `fn` pointer type cannot be `const` 20 --> $DIR/bad-fn-ptr-qualifier.rs:7:15 21 | 22LL | pub type T2 = const unsafe extern fn(); 23 | -----^^^^^^^^^^^^^^^^^^^ 24 | | 25 | `const` because of this 26 | help: remove the `const` qualifier 27 28error: an `fn` pointer type cannot be `async` 29 --> $DIR/bad-fn-ptr-qualifier.rs:8:15 30 | 31LL | pub type T3 = async fn(); 32 | -----^^^^^ 33 | | 34 | `async` because of this 35 | help: remove the `async` qualifier 36 37error: an `fn` pointer type cannot be `async` 38 --> $DIR/bad-fn-ptr-qualifier.rs:9:15 39 | 40LL | pub type T4 = async extern fn(); 41 | -----^^^^^^^^^^^^ 42 | | 43 | `async` because of this 44 | help: remove the `async` qualifier 45 46error: an `fn` pointer type cannot be `async` 47 --> $DIR/bad-fn-ptr-qualifier.rs:10:15 48 | 49LL | pub type T5 = async unsafe extern "C" fn(); 50 | -----^^^^^^^^^^^^^^^^^^^^^^^ 51 | | 52 | `async` because of this 53 | help: remove the `async` qualifier 54 55error: an `fn` pointer type cannot be `const` 56 --> $DIR/bad-fn-ptr-qualifier.rs:11:15 57 | 58LL | pub type T6 = const async unsafe extern "C" fn(); 59 | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 60 | | 61 | `const` because of this 62 | help: remove the `const` qualifier 63 64error: an `fn` pointer type cannot be `async` 65 --> $DIR/bad-fn-ptr-qualifier.rs:11:15 66 | 67LL | pub type T6 = const async unsafe extern "C" fn(); 68 | ^^^^^^-----^^^^^^^^^^^^^^^^^^^^^^^ 69 | | 70 | `async` because of this 71 | help: remove the `async` qualifier 72 73error: an `fn` pointer type cannot be `const` 74 --> $DIR/bad-fn-ptr-qualifier.rs:15:17 75 | 76LL | pub type FTT0 = for<'a> const fn(); 77 | ^^^^^^^^-----^^^^^ 78 | | 79 | `const` because of this 80 | help: remove the `const` qualifier 81 82error: an `fn` pointer type cannot be `const` 83 --> $DIR/bad-fn-ptr-qualifier.rs:16:17 84 | 85LL | pub type FTT1 = for<'a> const extern "C" fn(); 86 | ^^^^^^^^-----^^^^^^^^^^^^^^^^ 87 | | 88 | `const` because of this 89 | help: remove the `const` qualifier 90 91error: an `fn` pointer type cannot be `const` 92 --> $DIR/bad-fn-ptr-qualifier.rs:17:17 93 | 94LL | pub type FTT2 = for<'a> const unsafe extern fn(); 95 | ^^^^^^^^-----^^^^^^^^^^^^^^^^^^^ 96 | | 97 | `const` because of this 98 | help: remove the `const` qualifier 99 100error: an `fn` pointer type cannot be `async` 101 --> $DIR/bad-fn-ptr-qualifier.rs:18:17 102 | 103LL | pub type FTT3 = for<'a> async fn(); 104 | ^^^^^^^^-----^^^^^ 105 | | 106 | `async` because of this 107 | help: remove the `async` qualifier 108 109error: an `fn` pointer type cannot be `async` 110 --> $DIR/bad-fn-ptr-qualifier.rs:19:17 111 | 112LL | pub type FTT4 = for<'a> async extern fn(); 113 | ^^^^^^^^-----^^^^^^^^^^^^ 114 | | 115 | `async` because of this 116 | help: remove the `async` qualifier 117 118error: an `fn` pointer type cannot be `async` 119 --> $DIR/bad-fn-ptr-qualifier.rs:20:17 120 | 121LL | pub type FTT5 = for<'a> async unsafe extern "C" fn(); 122 | ^^^^^^^^-----^^^^^^^^^^^^^^^^^^^^^^^ 123 | | 124 | `async` because of this 125 | help: remove the `async` qualifier 126 127error: an `fn` pointer type cannot be `const` 128 --> $DIR/bad-fn-ptr-qualifier.rs:22:17 129 | 130LL | pub type FTT6 = for<'a> const async unsafe extern "C" fn(); 131 | ^^^^^^^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 132 | | 133 | `const` because of this 134 | help: remove the `const` qualifier 135 136error: an `fn` pointer type cannot be `async` 137 --> $DIR/bad-fn-ptr-qualifier.rs:22:17 138 | 139LL | pub type FTT6 = for<'a> const async unsafe extern "C" fn(); 140 | ^^^^^^^^^^^^^^-----^^^^^^^^^^^^^^^^^^^^^^^ 141 | | 142 | `async` because of this 143 | help: remove the `async` qualifier 144 145error: aborting due to 16 previous errors 146