/src/test/auxiliary/lint_output_format.rs

https://gitlab.com/pranith/rust · Rust · 31 lines · 18 code · 4 blank · 9 comment · 0 complexity · 3f64876b536467cf590adf5d66bf405d MD5 · raw file

  1. // Copyright 2014 The Rust Project Developers. See the COPYRIGHT
  2. // file at the top-level directory of this distribution and at
  3. // http://rust-lang.org/COPYRIGHT.
  4. //
  5. // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
  6. // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
  7. // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
  8. // option. This file may not be copied, modified, or distributed
  9. // except according to those terms.
  10. #![crate_name="lint_output_format"]
  11. #![crate_type = "lib"]
  12. #![feature(staged_api)]
  13. #![staged_api]
  14. #![unstable(feature = "test_feature")]
  15. #[stable(feature = "test_feature", since = "1.0.0")]
  16. #[deprecated(since = "1.0.0")]
  17. pub fn foo() -> usize {
  18. 20
  19. }
  20. #[unstable(feature = "test_feature")]
  21. pub fn bar() -> usize {
  22. 40
  23. }
  24. #[unstable(feature = "test_feature")]
  25. pub fn baz() -> usize {
  26. 30
  27. }