]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/occurs-check-3.rs
Auto merge of #81507 - weiznich:add_diesel_to_cargo_test, r=Mark-Simulacrum
[rust.git] / src / test / ui / occurs-check-3.rs
index ba7688e85248521f541dbb32585aa4cfd0ea8008..9c04204010b7715f2aa7f3d904b450d82ba54aaa 100644 (file)
@@ -1,14 +1,5 @@
-// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
-// error-pattern:mismatched types
 // From Issue #778
-enum clam<T> { a(T), }
-fn main() { let c; c = clam::a(c); match c { clam::a::<isize>(_) => { } } }
+
+enum Clam<T> { A(T) }
+fn main() { let c; c = Clam::A(c); match c { Clam::A::<isize>(_) => { } } }
+//~^ ERROR mismatched types