]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/fallible_impl_from.rs
iterate List by value
[rust.git] / tests / ui / fallible_impl_from.rs
index f50d5999de6111eab18e9d6e5104fcf5da817990..679f4a7dc357d4a182be13c9a292d43ac229ea5c 100644 (file)
@@ -1,15 +1,3 @@
-// Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution.
-//
-// 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.
-
-
-
-
 #![deny(clippy::fallible_impl_from)]
 
 // docs example
@@ -20,7 +8,6 @@ fn from(s: String) -> Self {
     }
 }
 
-
 struct Valid(Vec<u8>);
 
 impl<'a> From<&'a str> for Valid {
@@ -34,7 +21,6 @@ fn from(i: usize) -> Valid {
     }
 }
 
-
 struct Invalid;
 
 impl From<usize> for Invalid {