fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: an `fn` pointer type cannot be `const` 2 --> $DIR/recover-const-async-fn-ptr.rs:3:11 3 | 4LL | 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/recover-const-async-fn-ptr.rs:4:11 12 | 13LL | 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/recover-const-async-fn-ptr.rs:5:11 21 | 22LL | 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/recover-const-async-fn-ptr.rs:6:11 30 | 31LL | 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/recover-const-async-fn-ptr.rs:7:11 39 | 40LL | 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/recover-const-async-fn-ptr.rs:8:11 48 | 49LL | 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/recover-const-async-fn-ptr.rs:9:11 57 | 58LL | 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/recover-const-async-fn-ptr.rs:9:11 66 | 67LL | 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/recover-const-async-fn-ptr.rs:13:12 75 | 76LL | type FT0 = 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/recover-const-async-fn-ptr.rs:14:12 84 | 85LL | type FT1 = 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/recover-const-async-fn-ptr.rs:15:12 93 | 94LL | type FT2 = 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/recover-const-async-fn-ptr.rs:16:12 102 | 103LL | type FT3 = 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/recover-const-async-fn-ptr.rs:17:12 111 | 112LL | type FT4 = 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/recover-const-async-fn-ptr.rs:18:12 120 | 121LL | type FT5 = 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/recover-const-async-fn-ptr.rs:19:12 129 | 130LL | type FT6 = 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/recover-const-async-fn-ptr.rs:19:12 138 | 139LL | type FT6 = for<'a> const async unsafe extern "C" fn(); 140 | ^^^^^^^^^^^^^^-----^^^^^^^^^^^^^^^^^^^^^^^ 141 | | 142 | `async` because of this 143 | help: remove the `async` qualifier 144 145error[E0308]: mismatched types 146 --> $DIR/recover-const-async-fn-ptr.rs:24:33 147 | 148LL | let _recovery_witness: () = 0; 149 | -- ^ expected `()`, found integer 150 | | 151 | expected due to this 152 153error: aborting due to 17 previous errors 154 155For more information about this error, try `rustc --explain E0308`.