]>
git.proxmox.com Git - rustc.git/blob - vendor/rustversion/tests/test_parse.rs
1 #![allow(clippy::enum_glob_use, clippy::must_use_candidate)]
3 include
!("../build/rustc.rs");
9 "rustc 1.0.0 (a59de37e9 2015-05-13) (built 2015-05-14)",
25 "rustc 1.24.1 (d3ae9a9e0 2018-02-27)",
33 "rustc 1.35.0-beta.3 (c13114dc8 2019-04-27)",
41 "rustc 1.36.0-nightly (938d4ffe1 2019-04-27)",
45 channel
: Nightly(Date
{
61 "rustc 1.36.0-nightly",
69 "warning: invalid logging spec 'warning', ignoring it
70 rustc 1.30.0-nightly (3bc2ca7e4 2018-09-20)",
74 channel
: Nightly(Date
{
82 "rustc 1.52.1-nightly (gentoo)",
91 for (string
, expected
) in cases
{
92 assert_eq
!(parse(string
).unwrap(), *expected
);