You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fnfoo<T>(a:T) -> T{ a }staticBLOCK_FN_INFERRED:fn(uint) -> uint = foo;fnmain(){}
The intend here is to let rustc infer the right instantiation of foo, which would be foo::<uint>.
Output (warnings trimmed):
error: internal compiler error: fictitious type ty_param(middle::ty::param_ty{idx: 0u, def_id: syntax::ast::DefId{krate: 0u32, node: 11u32}}) in sizing_type_of()
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://static.rust-lang.org/doc/master/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' failed at '~Any', /build/rust-git/src/rust/src/libsyntax/diagnostic.rs:155
The text was updated successfully, but these errors were encountered:
Testcase:
The intend here is to let rustc infer the right instantiation of
foo
, which would befoo::<uint>
.Output (warnings trimmed):
The text was updated successfully, but these errors were encountered: