Created
October 12, 2020 14:26
rust sqlx error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
francesco@francesco-yoga720 ~/projects/auth-service master ● ? cargo install --git https://github.com/launchbadge/sqlx sqlx-cli 101 ↵ 4264 16:50:47 | |
Updating git repository `https://github.com/launchbadge/sqlx` | |
Installing sqlx-cli v0.1.0-beta.1 (https://github.com/launchbadge/sqlx#8e4d061d) | |
Updating crates.io index | |
Downloaded atomic-waker v1.0.0 | |
Downloaded pem v0.8.1 | |
Downloaded zeroize v1.1.1 | |
Downloaded async-channel v1.5.1 | |
Downloaded async-mutex v1.4.0 | |
Downloaded async-global-executor v1.3.0 | |
Downloaded async-task v4.0.2 | |
Downloaded cache-padded v1.1.1 | |
Downloaded blocking v1.0.2 | |
Downloaded clap_derive v3.0.0-beta.2 | |
Downloaded console v0.11.3 | |
Downloaded clap v3.0.0-beta.2 | |
Downloaded cargo_metadata v0.10.0 | |
Downloaded proc-macro-error v1.0.4 | |
Downloaded concurrent-queue v1.2.2 | |
Downloaded kv-log-macro v1.0.7 | |
Downloaded native-tls v0.2.4 | |
Downloaded md-5 v0.9.1 | |
Downloaded pin-project v0.4.27 | |
Downloaded sqlformat v0.1.1 | |
Downloaded pin-project-internal v0.4.27 | |
Downloaded libm v0.2.1 | |
Downloaded regex-syntax v0.6.19 | |
Downloaded sha2 v0.9.1 | |
Downloaded stringprep v0.1.2 | |
Downloaded proc-macro-error-attr v1.0.4 | |
Downloaded polling v2.0.1 | |
Downloaded synstructure v0.12.4 | |
Downloaded terminal_size v0.1.13 | |
Downloaded tokio-macros v0.2.5 | |
Downloaded strsim v0.10.0 | |
Downloaded unicode-width v0.1.8 | |
Downloaded vec-arena v1.0.0 | |
Downloaded vec_map v0.8.2 | |
Downloaded nb-connect v1.0.2 | |
Downloaded anyhow v1.0.33 | |
Downloaded zeroize_derive v1.0.1 | |
Downloaded textwrap v0.12.1 | |
Downloaded whoami v0.9.0 | |
Downloaded autocfg v0.1.7 | |
Downloaded atoi v0.3.2 | |
Downloaded crossbeam-queue v0.2.3 | |
Downloaded crypto-mac v0.8.0 | |
Downloaded build_const v0.2.1 | |
Downloaded event-listener v2.5.1 | |
Downloaded foreign-types v0.3.2 | |
Downloaded fastrand v1.4.0 | |
Downloaded foreign-types-shared v0.1.1 | |
Downloaded async-io v1.1.10 | |
Downloaded dialoguer v0.6.2 | |
Downloaded async-native-tls v0.3.3 | |
Downloaded glob v0.3.0 | |
Downloaded maplit v1.0.2 | |
Downloaded openssl-probe v0.1.2 | |
Downloaded parking v2.0.0 | |
Downloaded openssl-sys v0.9.58 | |
Downloaded simple_asn1 v0.4.1 | |
Downloaded subtle v2.3.0 | |
Downloaded termios v0.3.2 | |
Downloaded futures-executor v0.3.6 | |
Downloaded os_str_bytes v2.3.2 | |
Downloaded hmac v0.8.1 | |
Downloaded hex v0.4.2 | |
Downloaded crc v1.8.1 | |
Downloaded waker-fn v1.1.0 | |
Downloaded futures-lite v1.11.1 | |
Downloaded rsa v0.3.0 | |
Downloaded async-executor v1.3.0 | |
Downloaded crossbeam-channel v0.4.4 | |
Downloaded num-bigint v0.2.6 | |
Downloaded num-bigint-dig v0.6.0 | |
Downloaded openssl v0.10.30 | |
Downloaded regex v1.4.0 | |
Downloaded syn v1.0.44 | |
Downloaded async-std v1.6.5 | |
Downloaded libsqlite3-sys v0.18.0 | |
Downloaded 76 crates (5.1 MB) in 25.58s (largest was `libsqlite3-sys` at 2.3 MB) | |
Compiling autocfg v1.0.1 | |
Compiling libc v0.2.79 | |
Compiling proc-macro2 v1.0.24 | |
Compiling unicode-xid v0.2.1 | |
Compiling syn v1.0.44 | |
Compiling memchr v2.3.3 | |
Compiling version_check v0.9.2 | |
Compiling cfg-if v0.1.10 | |
Compiling typenum v1.12.0 | |
Compiling pkg-config v0.3.18 | |
Compiling cc v1.0.61 | |
Compiling log v0.4.11 | |
Compiling getrandom v0.1.15 | |
Compiling spin v0.5.2 | |
Compiling serde v1.0.116 | |
Compiling serde_derive v1.0.116 | |
Compiling bitflags v1.2.1 | |
Compiling once_cell v1.4.1 | |
Compiling futures-core v0.3.6 | |
Compiling openssl v0.10.30 | |
Compiling futures-io v0.3.6 | |
Compiling proc-macro-nested v0.1.6 | |
Compiling pin-project-internal v0.4.27 | |
Compiling native-tls v0.2.4 | |
Compiling cache-padded v1.1.1 | |
Compiling byteorder v1.3.4 | |
Compiling libm v0.2.1 | |
Compiling maybe-uninit v2.0.0 | |
Compiling parking v2.0.0 | |
Compiling waker-fn v1.1.0 | |
Compiling proc-macro-hack v0.5.18 | |
Compiling pin-project-lite v0.1.10 | |
Compiling fastrand v1.4.0 | |
Compiling autocfg v0.1.7 | |
Compiling build_const v0.2.1 | |
Compiling pin-utils v0.1.0 | |
Compiling async-task v4.0.2 | |
Compiling matches v0.1.8 | |
Compiling tinyvec v0.3.4 | |
Compiling ryu v1.0.5 | |
Compiling event-listener v2.5.1 | |
Compiling slab v0.4.2 | |
Compiling vec-arena v1.0.0 | |
Compiling regex-syntax v0.6.19 | |
Compiling foreign-types-shared v0.1.1 | |
Compiling ppv-lite86 v0.2.9 | |
Compiling futures-sink v0.3.6 | |
Compiling opaque-debug v0.3.0 | |
Compiling atomic-waker v1.0.0 | |
Compiling serde_json v1.0.58 | |
Compiling smallvec v1.4.2 | |
Compiling openssl-probe v0.1.2 | |
Compiling percent-encoding v2.1.0 | |
Compiling cpuid-bool v0.1.2 | |
Compiling subtle v2.3.0 | |
Compiling unicode-segmentation v1.6.0 | |
Compiling base64 v0.12.3 | |
Compiling scopeguard v1.1.0 | |
Compiling hashbrown v0.9.1 | |
Compiling itoa v0.4.6 | |
Compiling unicode-width v0.1.8 | |
Compiling linked-hash-map v0.5.3 | |
Compiling ahash v0.3.8 | |
Compiling maplit v1.0.2 | |
Compiling bytes v0.5.6 | |
Compiling hex v0.4.2 | |
Compiling whoami v0.9.0 | |
Compiling remove_dir_all v0.5.3 | |
Compiling semver-parser v0.7.0 | |
Compiling dotenv v0.15.0 | |
Compiling anyhow v1.0.33 | |
Compiling strsim v0.10.0 | |
Compiling termcolor v1.1.0 | |
Compiling os_str_bytes v2.3.2 | |
Compiling vec_map v0.8.2 | |
Compiling glob v0.3.0 | |
Compiling instant v0.1.7 | |
Compiling num-traits v0.2.12 | |
Compiling num-integer v0.1.43 | |
Compiling crossbeam-utils v0.7.2 | |
Compiling num-bigint v0.2.6 | |
Compiling num-iter v0.1.41 | |
Compiling indexmap v1.6.0 | |
Compiling hashbrown v0.8.2 | |
Compiling generic-array v0.14.4 | |
Compiling proc-macro-error-attr v1.0.4 | |
Compiling proc-macro-error v1.0.4 | |
Compiling lazy_static v1.4.0 | |
Compiling futures-task v0.3.6 | |
Compiling openssl-sys v0.9.58 | |
Compiling libsqlite3-sys v0.18.0 | |
Compiling concurrent-queue v1.2.2 | |
Compiling num-bigint-dig v0.6.0 | |
Compiling crc v1.8.1 | |
Compiling unicode-bidi v0.3.4 | |
Compiling async-mutex v1.4.0 | |
Compiling unicode-normalization v0.1.13 | |
Compiling foreign-types v0.3.2 | |
Compiling futures-channel v0.3.6 | |
Compiling heck v0.3.1 | |
Compiling lock_api v0.4.1 | |
Compiling textwrap v0.12.1 | |
Compiling lru-cache v0.1.2 | |
Compiling thread_local v1.0.1 | |
Compiling async-channel v1.5.1 | |
Compiling idna v0.2.0 | |
Compiling stringprep v0.1.2 | |
Compiling quote v1.0.7 | |
Compiling nb-connect v1.0.2 | |
Compiling num_cpus v1.13.0 | |
Compiling time v0.1.44 | |
Compiling parking_lot_core v0.8.0 | |
Compiling terminal_size v0.1.13 | |
Compiling termios v0.3.2 | |
Compiling atty v0.2.14 | |
Compiling futures-lite v1.11.1 | |
Compiling aho-corasick v0.7.13 | |
Compiling polling v2.0.1 | |
Compiling kv-log-macro v1.0.7 | |
Compiling url v2.1.1 | |
Compiling rand_core v0.5.1 | |
Compiling parking_lot v0.11.0 | |
Compiling atoi v0.3.2 | |
Compiling crossbeam-queue v0.2.3 | |
Compiling crossbeam-channel v0.4.4 | |
Compiling regex v1.4.0 | |
Compiling async-executor v1.3.0 | |
Compiling blocking v1.0.2 | |
Compiling async-io v1.1.10 | |
Compiling digest v0.9.0 | |
Compiling block-buffer v0.9.0 | |
Compiling crypto-mac v0.8.0 | |
Compiling rand_chacha v0.2.2 | |
Compiling chrono v0.4.19 | |
Compiling synstructure v0.12.4 | |
Compiling pem v0.8.1 | |
Compiling sqlformat v0.1.1 | |
Compiling console v0.11.3 | |
Compiling async-global-executor v1.3.0 | |
Compiling thiserror-impl v1.0.21 | |
Compiling futures-macro v0.3.6 | |
Compiling tokio-macros v0.2.5 | |
Compiling async-trait v0.1.41 | |
Compiling sha2 v0.9.1 | |
Compiling md-5 v0.9.1 | |
Compiling sha-1 v0.9.1 | |
Compiling hmac v0.8.1 | |
Compiling rand v0.7.3 | |
Compiling simple_asn1 v0.4.1 | |
Compiling clap_derive v3.0.0-beta.2 | |
Compiling zeroize_derive v1.0.1 | |
Compiling async-std v1.6.5 | |
Compiling thiserror v1.0.21 | |
Compiling tokio v0.2.22 | |
Compiling pin-project v0.4.27 | |
Compiling tempfile v3.1.0 | |
Compiling zeroize v1.1.1 | |
Compiling clap v3.0.0-beta.2 | |
Compiling futures-util v0.3.6 | |
Compiling async-native-tls v0.3.3 | |
Compiling either v1.6.1 | |
Compiling semver v0.9.0 | |
Compiling dialoguer v0.6.2 | |
Compiling futures-executor v0.3.6 | |
Compiling sqlx-rt v0.1.1 (/home/francesco/.cargo/git/checkouts/sqlx-f05f33ba4f5c3036/8e4d061/sqlx-rt) | |
Compiling cargo_metadata v0.10.0 | |
Compiling rsa v0.3.0 | |
Compiling futures v0.3.6 | |
Compiling sqlx-core v0.4.0-beta.1 (/home/francesco/.cargo/git/checkouts/sqlx-f05f33ba4f5c3036/8e4d061/sqlx-core) | |
Compiling sqlx-macros v0.4.0-beta.1 (/home/francesco/.cargo/git/checkouts/sqlx-f05f33ba4f5c3036/8e4d061/sqlx-macros) | |
Compiling sqlx v0.4.0-beta.1 (/home/francesco/.cargo/git/checkouts/sqlx-f05f33ba4f5c3036/8e4d061) | |
Compiling sqlx-cli v0.1.0-beta.1 (/home/francesco/.cargo/git/checkouts/sqlx-f05f33ba4f5c3036/8e4d061/sqlx-cli) | |
error[E0308]: mismatched types | |
--> sqlx-cli/src/opt.rs:8:20 | |
| | |
8 | #[clap(short = "D", long)] | |
| ^^^ expected `char`, found `&str` | |
error: aborting due to previous error | |
For more information about this error, try `rustc --explain E0308`. | |
error: could not compile `sqlx-cli`. | |
To learn more, run the command again with --verbose. | |
warning: build failed, waiting for other jobs to finish... | |
error: failed to compile `sqlx-cli v0.1.0-beta.1 (https://github.com/launchbadge/sqlx#8e4d061d)`, intermediate artifacts can be found at `/tmp/cargo-installfRUbiY` | |
Caused by: | |
build failed | |
francesco@francesco-yoga720 ~/projects/auth-service master ● ? rustc --explain E0308 INT(-2) ↵ 4266 17:20:07 | |
Expected type did not match the received type. | |
Erroneous code example: | |
``` | |
let x: i32 = "I am not a number!"; | |
// ~~~ ~~~~~~~~~~~~~~~~~~~~ | |
// | | | |
// | initializing expression; | |
// | compiler infers type `&str` | |
// | | |
// type `i32` assigned to variable `x` | |
``` | |
This error occurs when the compiler is unable to infer the concrete type of a | |
variable. It can occur in several cases, the most common being a mismatch | |
between two types: the type the author explicitly assigned, and the type the | |
compiler inferred. | |
(END) | |
francesco@francesco-yoga720 ~/projects/auth-service master ● ? rustc --version INT(-2) ↵ 4266 17:20:40 | |
rustc 1.47.0 (18bf6b4f0 2020-10-07) | |
francesco@francesco-yoga720 ~/projects/auth-service master ● ? cargo --version ✔ 4267 17:21:20 | |
cargo 1.47.0 (f3c7e066a 2020-08-28) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment