Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
ce60da4
Fix `vec![x; n]` with null raw fat pointer zeroing the pointer metadata
SimonSapin Sep 29, 2019
6c01c0e
Zero-initialize `vec![None; n]` for `Option<&T>`, `Option<&mut T>` an…
SimonSapin Sep 29, 2019
2185710
Use https for curl when building for linux
tmandry Sep 28, 2019
6c6d27d
Fixed a misleading documentation issue #64844
hman523 Sep 30, 2019
cc9db52
Add long error explanation for E0493
GuillaumeGomez Sep 11, 2019
9f978b7
update tests
GuillaumeGomez Sep 12, 2019
67eabe1
Add long error explanation for E0550
GuillaumeGomez Sep 27, 2019
e67ae0e
update ui tests
GuillaumeGomez Sep 27, 2019
5bf4397
Add test for issue-64662
JohnTitor Sep 30, 2019
cdf1852
Add missing links for mem::needs_drop
tesuji Sep 30, 2019
f33d94d
Fix typo in docs
ecstatic-morse Sep 26, 2019
3e88aa2
Allow `ResultsCursor` to borrow the underlying `Results`
ecstatic-morse Sep 26, 2019
d37c318
Add graphviz debug output for generic dataflow
ecstatic-morse Sep 26, 2019
cd24cd4
Update consumers of `generic::Engine` API
ecstatic-morse Sep 30, 2019
cf5f5c5
Use separate files for debugging `Qualif` dataflow results
ecstatic-morse Sep 30, 2019
2b8e023
Stop printing `Qualif` results in debug logs
ecstatic-morse Sep 30, 2019
30ba6fd
Rollup merge of #64377 - GuillaumeGomez:E0493, r=estebank
tmandry Sep 30, 2019
fb8f9b4
Rollup merge of #64786 - tmandry:patch-1, r=alexcrichton
tmandry Sep 30, 2019
686ad4d
Rollup merge of #64828 - ecstatic-morse:generic-dataflow-graphviz, r=…
tmandry Sep 30, 2019
3add979
Rollup merge of #64838 - GuillaumeGomez:long-err-explanation-e0550, r…
tmandry Sep 30, 2019
1cd9b4b
Rollup merge of #64891 - SimonSapin:vec-of-fat-raw-ptr, r=sfackler
tmandry Sep 30, 2019
a8ed9bf
Rollup merge of #64893 - SimonSapin:vec-of-option-box, r=sfackler
tmandry Sep 30, 2019
5560f8c
Rollup merge of #64911 - hman523:64844, r=Dylan-DPC
tmandry Sep 30, 2019
e9d2879
Rollup merge of #64921 - JohnTitor:add-test-enum, r=varkor
tmandry Sep 30, 2019
913c095
Rollup merge of #64923 - lzutao:improve-doc-needs_drop, r=jonas-schie…
tmandry Sep 30, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add test for issue-64662
  • Loading branch information
JohnTitor committed Sep 30, 2019
commit 5bf4397abca2f22fd76af5c463d292216d1a56d3
10 changes: 10 additions & 0 deletions src/test/ui/consts/issue-64662.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
enum Foo {
A = foo(), //~ ERROR: type annotations needed
B = foo(), //~ ERROR: type annotations needed
}

const fn foo<T>() -> isize {
0
}

fn main() {}
15 changes: 15 additions & 0 deletions src/test/ui/consts/issue-64662.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
error[E0282]: type annotations needed
--> $DIR/issue-64662.rs:2:9
|
LL | A = foo(),
| ^^^ cannot infer type for `T`

error[E0282]: type annotations needed
--> $DIR/issue-64662.rs:3:9
|
LL | B = foo(),
| ^^^ cannot infer type for `T`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0282`.