-
-
Save jD91mZM2/b1d3dc43e60ec17edb09fa818a97ee87 to your computer and use it in GitHub Desktop.
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
~ Coding Rust jrust master ⬆ 2✎ + % cargo run --example concat | |
Compiling jrust v0.1.0 (file:///home/user/Coding/Rust/jrust) | |
warning: unused import: `std::ops::Add` | |
--> src/lib.rs:216:5 | |
| | |
216 | use std::ops::Add; | |
| ^^^^^^^^^^^^^ | |
| | |
= note: #[warn(unused_imports)] on by default | |
error[E0087]: too many type parameters provided: expected at most 0 type parameters, found 1 type parameter | |
--> src/lib.rs:249:29 | |
| | |
249 | self.into::<i64>() + other.into::<i64>() | |
| ^^^ expected 0 type parameters | |
... | |
255 | impl_add!(i8, i16, i32, i64); | |
| ----------------------------- in this macro invocation | |
error[E0087]: too many type parameters provided: expected at most 0 type parameters, found 1 type parameter | |
--> src/lib.rs:249:51 | |
| | |
249 | self.into::<i64>() + other.into::<i64>() | |
| ^^^ expected 0 type parameters | |
... | |
255 | impl_add!(i8, i16, i32, i64); | |
| ----------------------------- in this macro invocation | |
error: internal compiler error: librustc_typeck/check/mod.rs:2168: no type for node 162: type i64 (id=162) in fcx 0x7ffd712b53a0 | |
thread 'main' panicked at 'Box<Any>', librustc_errors/lib.rs:554:9 | |
stack backtrace: | |
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace | |
at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49 | |
1: std::sys_common::backtrace::print | |
at libstd/sys_common/backtrace.rs:71 | |
at libstd/sys_common/backtrace.rs:59 | |
2: std::panicking::default_hook::{{closure}} | |
at libstd/panicking.rs:211 | |
3: std::panicking::default_hook | |
at libstd/panicking.rs:227 | |
4: rustc::util::common::panic_hook | |
5: std::panicking::rust_panic_with_hook | |
at libstd/panicking.rs:515 | |
6: std::panicking::begin_panic | |
7: rustc_errors::Handler::bug | |
8: rustc::session::opt_span_bug_fmt::{{closure}} | |
9: rustc::ty::context::tls::with_opt::{{closure}} | |
10: rustc::ty::context::tls::with_context_opt | |
11: rustc::ty::context::tls::with_opt | |
12: rustc::session::opt_span_bug_fmt | |
13: rustc::session::bug_fmt | |
14: rustc_typeck::check::FnCtxt::node_ty | |
15: <rustc_typeck::check::writeback::WritebackCx<'cx, 'gcx, 'tcx> as rustc::hir::intravisit::Visitor<'gcx>>::visit_ty | |
16: rustc::hir::intravisit::walk_expr | |
17: <rustc_typeck::check::writeback::WritebackCx<'cx, 'gcx, 'tcx> as rustc::hir::intravisit::Visitor<'gcx>>::visit_expr | |
18: rustc::hir::intravisit::walk_expr | |
19: <rustc_typeck::check::writeback::WritebackCx<'cx, 'gcx, 'tcx> as rustc::hir::intravisit::Visitor<'gcx>>::visit_expr | |
20: <rustc_typeck::check::writeback::WritebackCx<'cx, 'gcx, 'tcx> as rustc::hir::intravisit::Visitor<'gcx>>::visit_expr | |
21: rustc_typeck::check::writeback::<impl rustc_typeck::check::FnCtxt<'a, 'gcx, 'tcx>>::resolve_type_vars_in_body | |
22: rustc::ty::context::tls::with_related_context | |
23: rustc::infer::InferCtxtBuilder::enter | |
24: rustc_typeck::check::typeck_tables_of | |
25: rustc::ty::query::__query_compute::typeck_tables_of | |
26: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_tables_of<'tcx>>::compute | |
27: rustc::ty::context::tls::with_context | |
28: rustc::dep_graph::graph::DepGraph::with_task_impl | |
29: rustc::ty::context::tls::with_related_context | |
30: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::force_query_with_job | |
31: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::get_query | |
32: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::ensure_query | |
33: rustc::session::Session::track_errors | |
34: rustc_typeck::check::typeck_item_bodies | |
35: rustc::ty::query::<impl rustc::ty::query::config::QueryAccessors<'tcx> for rustc::ty::query::queries::typeck_item_bodies<'tcx>>::compute | |
36: rustc::ty::context::tls::with_context | |
37: rustc::dep_graph::graph::DepGraph::with_task_impl | |
38: rustc::ty::context::tls::with_related_context | |
39: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::force_query_with_job | |
40: rustc::ty::query::plumbing::<impl rustc::ty::context::TyCtxt<'a, 'gcx, 'tcx>>::get_query | |
41: rustc::util::common::time | |
42: rustc_typeck::check_crate | |
43: rustc::ty::context::tls::enter_context | |
44: <std::thread::local::LocalKey<T>>::with | |
45: rustc::ty::context::TyCtxt::create_and_enter | |
46: rustc_driver::driver::compile_input | |
47: rustc_driver::run_compiler_with_pool | |
48: <scoped_tls::ScopedKey<T>>::set | |
49: syntax::with_globals | |
50: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once | |
51: __rust_maybe_catch_panic | |
at libpanic_unwind/lib.rs:105 | |
52: rustc_driver::run | |
53: rustc_driver::main | |
54: std::rt::lang_start::{{closure}} | |
55: std::panicking::try::do_call | |
at libstd/rt.rs:59 | |
at libstd/panicking.rs:310 | |
56: __rust_maybe_catch_panic | |
at libpanic_unwind/lib.rs:105 | |
57: std::rt::lang_start_internal | |
at libstd/panicking.rs:289 | |
at libstd/panic.rs:392 | |
at libstd/rt.rs:58 | |
58: main | |
59: __libc_start_main | |
60: <unknown> | |
query stack during panic: | |
#0 [typeck_tables_of] processing `<i16 as JavaAdd<T>>::add` | |
#1 [typeck_item_bodies] type-checking all item bodies | |
end of query stack | |
error: aborting due to 3 previous errors | |
For more information about this error, try `rustc --explain E0087`. | |
note: the compiler unexpectedly panicked. this is a bug. | |
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports | |
note: rustc 1.28.0 (9634041f0 2018-07-30) running on x86_64-unknown-linux-gnu | |
note: compiler flags: -C debuginfo=2 -C incremental --crate-type lib | |
note: some of the compiler flags provided by cargo are hidden | |
error: Could not compile `jrust`. | |
To learn more, run the command again with --verbose. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment