Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
51b51b51d7931da85280382a81c4dd80c73ca754
rust/tests/ui/test-attrs/issue-12997-2.rs

10 lines
173 B
Rust
Raw Normal View History

[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
2024-02-16 20:02:50 +00:00
//@ compile-flags: --test
rustc: test: don't silently ignore bad benches This is adequate because when a function has a type that isn't caught here, that is, it has a single argument, but it *isn't* `&mut BenchHarness`, it errors later on with: error: mismatched types: expected `fn(&mut test::BenchHarness)` but found `fn(int)` (expected &-ptr but found int) which I consider acceptable. Closes #12997
2014-03-18 09:20:30 -04:00
//! Test that makes sure wrongly-typed bench functions are rejected
Remove derives `Encodable`/`Decodable` and unstabilize attribute `#[bench]`
2019-07-27 15:06:49 +03:00
#![feature(test)]
rustc: test: don't silently ignore bad benches This is adequate because when a function has a type that isn't caught here, that is, it has a single argument, but it *isn't* `&mut BenchHarness`, it errors later on with: error: mismatched types: expected `fn(&mut test::BenchHarness)` but found `fn(int)` (expected &-ptr but found int) which I consider acceptable. Closes #12997
2014-03-18 09:20:30 -04:00
#[bench]
test fallout from isize/usize
2014-12-05 18:12:25 -08:00
fn bar(x: isize) { }
Fix testsuite errors
2015-01-12 01:01:44 -05:00
//~^ ERROR mismatched types
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 4971ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API