]> git.lizzy.rs Git - rust.git/commit
Allow types passed to [] to coerce, like .index()
authorAidan Hobson Sayers <aidanhs@cantab.net>
Tue, 28 Feb 2017 23:46:47 +0000 (23:46 +0000)
committerAidan Hobson Sayers <aidanhs@cantab.net>
Wed, 1 Mar 2017 00:15:13 +0000 (00:15 +0000)
commitc58fff2bb76b055c8276551d54a99aea997c34ed
tree6fff19c5ff3984309676dcedac7377220f1ba698
parent08230775a026c955873ba557e624b7f665661f37
Allow types passed to [] to coerce, like .index()

Fixes #40085
src/librustc_typeck/check/mod.rs
src/test/run-pass/issue-40085.rs [new file with mode: 0644]